1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-21 23:39:37 +01:00

📦 dist

This commit is contained in:
Jan Andrle 2024-01-31 14:41:18 +01:00
parent 8dcf4b83ff
commit 8c27fe8015
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
6 changed files with 56 additions and 52 deletions

File diff suppressed because one or more lines are too long

40
dist/dde.js vendored

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ type Action<V>= (this: { value: V, stopPropagation(): void }, ...a: any[])=> typ
//type SymbolObservable= Symbol; //type SymbolObservable= Symbol;
type SymbolOnclear= symbol; type SymbolOnclear= symbol;
type Actions<V>= Record<string | SymbolOnclear, Action<V>>; type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
type OnListenerOptions= Pick<AddEventListenerOptions, "signal"> & { first_time?: boolean };
interface observable{ interface observable{
_: Symbol _: Symbol
/** /**
@ -40,7 +41,7 @@ interface observable{
...params: A[N] extends (...args: infer P)=> any ? P : never ...params: A[N] extends (...args: infer P)=> any ? P : never
): void; ): void;
clear(...observables: Observable<any, any>[]): void; clear(...observables: Observable<any, any>[]): void;
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: AddEventListenerOptions): void; on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: OnListenerOptions): void;
symbols: { symbols: {
//observable: SymbolObservable; //observable: SymbolObservable;
onclear: SymbolOnclear; onclear: SymbolOnclear;
@ -239,6 +240,7 @@ export function customElementRender<
P extends any = Record<string, any> P extends any = Record<string, any>
>( >(
custom_element: EL, custom_element: EL,
target: ShadowRoot | EL,
render: (props: P)=> SupportedElement, render: (props: P)=> SupportedElement,
props?: P | ((...args: any[])=> P) props?: P | ((...args: any[])=> P)
): EL ): EL

File diff suppressed because one or more lines are too long

4
dist/esm.d.ts vendored
View File

@ -3,6 +3,7 @@ type Action<V>= (this: { value: V, stopPropagation(): void }, ...a: any[])=> typ
//type SymbolObservable= Symbol; //type SymbolObservable= Symbol;
type SymbolOnclear= symbol; type SymbolOnclear= symbol;
type Actions<V>= Record<string | SymbolOnclear, Action<V>>; type Actions<V>= Record<string | SymbolOnclear, Action<V>>;
type OnListenerOptions= Pick<AddEventListenerOptions, "signal"> & { first_time?: boolean };
interface observable{ interface observable{
_: Symbol _: Symbol
/** /**
@ -40,7 +41,7 @@ interface observable{
...params: A[N] extends (...args: infer P)=> any ? P : never ...params: A[N] extends (...args: infer P)=> any ? P : never
): void; ): void;
clear(...observables: Observable<any, any>[]): void; clear(...observables: Observable<any, any>[]): void;
on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: AddEventListenerOptions): void; on<T>(observable: Observable<T, any>, onchange: (a: T)=> void, options?: OnListenerOptions): void;
symbols: { symbols: {
//observable: SymbolObservable; //observable: SymbolObservable;
onclear: SymbolOnclear; onclear: SymbolOnclear;
@ -239,6 +240,7 @@ export function customElementRender<
P extends any = Record<string, any> P extends any = Record<string, any>
>( >(
custom_element: EL, custom_element: EL,
target: ShadowRoot | EL,
render: (props: P)=> SupportedElement, render: (props: P)=> SupportedElement,
props?: P | ((...args: any[])=> P) props?: P | ((...args: any[])=> P)
): EL ): EL

2
dist/esm.js vendored

File diff suppressed because one or more lines are too long