UNPKG

woby

Version:

A high-performance framework with fine-grained observable/signal-based reactivity for building rich applications.

31 lines 4.03 kB
import type { Child, Classes, EventListener, FunctionMaybe, ObservableMaybe, Ref, TemplateActionProxy } from '../types'; import { Stack } from '../soby'; export declare const debugHTML: (p: HTMLElement, name: string) => void; export declare const setAttributeStatic: (element: HTMLElement, key: string, value: null | undefined | boolean | number | string) => void; export declare const setAttribute: (element: HTMLElement, key: string, value: FunctionMaybe<null | undefined | boolean | number | string>, stack: Stack) => void; export declare const setChildStatic: (parent: HTMLElement, child: Child, dynamic: boolean, stack: Stack) => void; export declare const setChild: (parent: HTMLElement, child: Child, stack: Stack) => void; export declare const setClassStatic: (element: HTMLElement, classes: string, force: null | undefined | boolean) => void; export declare const setClass: (element: HTMLElement, key: string, value: FunctionMaybe<null | undefined | boolean>, stack: Stack) => void; export declare const setClassBooleanStatic: (element: HTMLElement, value: boolean, key: null | undefined | boolean | string, keyPrev?: null | undefined | boolean | string) => void; export declare const setClassBoolean: (element: HTMLElement, value: boolean, key: FunctionMaybe<null | undefined | boolean | string>, stack: Stack) => void; export declare const setClassesStatic: (element: HTMLElement, object: null | undefined | string | FunctionMaybe<null | undefined | boolean | string>[] | Record<string, FunctionMaybe<null | undefined | boolean>>, objectPrev: null | undefined | string | FunctionMaybe<null | undefined | boolean | string>[] | Record<string, FunctionMaybe<null | undefined | boolean>>, stack: Stack) => void; export declare const setClasses: (element: HTMLElement, object: Classes, stack: Stack) => void; export declare const setDirective: <T extends unknown[]>(element: HTMLElement, directive: string, args: T) => void; export declare const setEventStatic: (element: HTMLElement, event: string, value: null | undefined | EventListener) => void; export declare const setEvent: (element: HTMLElement, event: string, value: ObservableMaybe<null | undefined | EventListener>) => void; export declare const setHTMLStatic: (element: HTMLElement, value: null | undefined | number | string) => void; export declare const setHTML: (element: HTMLElement, value: FunctionMaybe<{ __html: FunctionMaybe<null | undefined | number | string>; }>, stack: Stack) => void; export declare const setPropertyStatic: (element: HTMLElement, key: string, value: null | undefined | boolean | number | string) => void; export declare const setProperty: (element: HTMLElement, key: string, value: FunctionMaybe<null | undefined | boolean | number | string>, stack: Stack) => void; export declare const setRef: <T>(element: T, value: null | undefined | Ref<T> | (null | undefined | Ref<T>)[]) => void; export declare const setStyleStatic: (element: HTMLElement, key: string, value: null | undefined | number | string) => void; export declare const setStyle: (element: HTMLElement, key: string, value: FunctionMaybe<null | undefined | number | string>, stack: Stack) => void; export declare const setStylesStatic: (element: HTMLElement, object: null | undefined | string | Record<string, FunctionMaybe<null | undefined | number | string>>, objectPrev: null | undefined | string | Record<string, FunctionMaybe<null | undefined | number | string>>, stack: Stack) => void; export declare const setStyles: (element: HTMLElement, object: FunctionMaybe<null | undefined | string | Record<string, FunctionMaybe<null | undefined | number | string>>>, stack: Stack) => void; export declare const setTemplateAccessor: (element: HTMLElement, key: string, value: TemplateActionProxy) => Promise<void>; export declare const setProp: <T>(element: HTMLElement, key: string, value: T, stack: Stack) => void; export declare const setProps: (element: HTMLElement, object: Record<string, unknown>, stack: Stack) => void; //# sourceMappingURL=setters.via.d.ts.map