update to v2.3.0
add `.rep()` & `.replaceChildren()` function update `.app()` & `.append()` to support rest params update build target to ES6 fix comment color on demo page add (more) tests
This commit is contained in:
8
dist/fluent-dom-esm.types.d.ts
vendored
8
dist/fluent-dom-esm.types.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
export interface FluentDomObject {
|
||||
(nodeOrQuerySelector: string | HTMLElement): FluentDomObject;
|
||||
(nodeOrQuerySelector: HTMLElement | string): FluentDomObject;
|
||||
fluentDom: string;
|
||||
a: (name: string, value: string) => FluentDomObject;
|
||||
app: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
append: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
app: (...content: (FluentDomObject | HTMLElement | string)[]) => FluentDomObject;
|
||||
append: (...content: (FluentDomObject | HTMLElement | string)[]) => FluentDomObject;
|
||||
attr: (name: string, value: string) => FluentDomObject;
|
||||
c: (tagName: string) => FluentDomObject;
|
||||
className: (className: string) => FluentDomObject;
|
||||
@@ -19,6 +19,8 @@ export interface FluentDomObject {
|
||||
listen: (type: keyof HTMLElementEventMap, listener: () => {}, optionsOrUseCapture?: boolean | object) => FluentDomObject;
|
||||
q: (selector: string) => FluentDomObject;
|
||||
querySelector: (selector: string) => FluentDomObject;
|
||||
rep: (...content: (FluentDomObject | HTMLElement | string)[]) => FluentDomObject;
|
||||
replaceChildren: (...content: (FluentDomObject | HTMLElement | string)[]) => FluentDomObject;
|
||||
s: ((prop: CSSStyleDeclaration) => FluentDomObject) | ((prop: string, value: string) => FluentDomObject);
|
||||
style: ((prop: CSSStyleDeclaration) => FluentDomObject) | ((prop: string, value: string) => FluentDomObject);
|
||||
t: (text: string) => FluentDomObject;
|
||||
|
Reference in New Issue
Block a user