Initial commit
This commit is contained in:
46
src/fluent-dom-esm.types.ts
Normal file
46
src/fluent-dom-esm.types.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
export interface FluentDomObject {
|
||||
fluentDom: string;
|
||||
|
||||
a: (name: string, value?: string) => FluentDomObject | string | null;
|
||||
app: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
append: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
attr: (name: string, value?: string) => FluentDomObject | string | null;
|
||||
c: (tagName: string) => FluentDomObject;
|
||||
create: (tagName: string) => FluentDomObject;
|
||||
className: (className?: string) => FluentDomObject | string | null;
|
||||
clear: () => FluentDomObject;
|
||||
cls: (className?: string) => FluentDomObject | string | null;
|
||||
clr: () => FluentDomObject;
|
||||
h: (url?: string) => FluentDomObject | string | null;
|
||||
href: (url?: string) => FluentDomObject | string | null;
|
||||
html: (content?: string) => string | FluentDomObject;
|
||||
id: (id?: string) => FluentDomObject | string | null;
|
||||
l: (
|
||||
type: keyof HTMLElementEventMap,
|
||||
listener: () => {},
|
||||
optionsOrUseCapture?: boolean | object,
|
||||
) => FluentDomObject;
|
||||
listen: (
|
||||
type: keyof HTMLElementEventMap,
|
||||
listener: () => {},
|
||||
optionsOrUseCapture?: boolean | object,
|
||||
) => FluentDomObject;
|
||||
ohtml: (content?: string) => string | FluentDomObject;
|
||||
s: (
|
||||
prop?: CSSStyleDeclaration | string,
|
||||
value?: string,
|
||||
) => FluentDomObject | CSSStyleDeclaration | string | undefined;
|
||||
style: (
|
||||
prop?: CSSStyleDeclaration | string,
|
||||
value?: string,
|
||||
) => FluentDomObject | CSSStyleDeclaration | string | undefined;
|
||||
t: (text?: string) => FluentDomObject | string;
|
||||
text: (text?: string) => FluentDomObject | string;
|
||||
title: (title?: string) => FluentDomObject | string | null;
|
||||
toDom: () => HTMLElement | null;
|
||||
unlisten: (
|
||||
type: keyof HTMLElementEventMap,
|
||||
listener: () => {},
|
||||
optionsOrUseCapture?: boolean | object,
|
||||
) => FluentDomObject;
|
||||
}
|
Reference in New Issue
Block a user