@lume/element
Version:
Create Custom Elements with reactivity and automatic re-rendering.
14 lines (10 loc) • 409 B
text/typescript
// Until decorators land natively, we need this shim so that we can use
// decorator metadata. https://github.com/microsoft/TypeScript/issues/53461
export {} // we don't export anything, but this denotes the file as a module to TypeScript
declare global {
interface SymbolConstructor {
readonly metadata: unique symbol
}
}
// @ts-expect-error readonly
Symbol.metadata ??= Symbol.for('Symbol.metadata')