UNPKG

lume

Version:

Build next-level interactive web applications.

42 lines (36 loc) 1.07 kB
import {Element3D, type Element3DAttributes} from './Element3D.js' import {autoDefineElements} from '../LumeConfig.js' import {element, type ElementAttributes} from '@lume/element' /** @deprecated Use `Element3DAttributes` instead. */ export type NodeAttributes = Element3DAttributes /** @deprecated Use `Element3D` (`<lume-element3d>`) instead. */ export @element('lume-node', autoDefineElements) class Node extends Element3D { /** * @property {true} isNode - * * *readonly* * * Always `true` for things that are or inherit from `Node`. * * @deprecated Use `Element3D`, `<lume-element3d>`, and `.isElement3D` instead. */ readonly isNode = true } // @ts-expect-error readonly Node.prototype.isNode = true declare module 'solid-js' { namespace JSX { interface IntrinsicElements { /** @deprecated Use Element3D (<lume-element3d>) instead. */ 'lume-node': ElementAttributes<Node, NodeAttributes> } } } declare global { interface HTMLElementTagNameMap { /** @deprecated Use Element3D (<lume-element3d>) instead. */ 'lume-node': Node } }