13 lines
740 B
TypeScript
13 lines
740 B
TypeScript
|
export {};
|
||
|
declare global {
|
||
|
const vanX: {
|
||
|
readonly calc: <R>(f: () => R) => R
|
||
|
readonly reactive: <T extends object>(obj: T) => T
|
||
|
readonly noreactive: <T extends object>(obj: T) => T
|
||
|
readonly stateFields: <T extends object>(obj: T) => VanX.StateOf<T>
|
||
|
readonly raw: <T extends object>(obj: T) => T
|
||
|
readonly list: <T extends object, ElementType extends Element>(container: (() => ElementType) | ElementType, items: T,itemFunc: (v: Van.State<VanX.ValueType<T>>, deleter: () => void, k: VanX.KeyType<T>) => Node) => ElementType
|
||
|
readonly replace: <T extends object>(obj: T, replacement: VanX.ReplacementFunc<T> | T) => T
|
||
|
readonly compact: <T extends object>(obj: T) => T
|
||
|
}
|
||
|
}
|