Create UseStyle.d.ts
parent
f2fbee878d
commit
60d0049eb1
|
@ -0,0 +1,19 @@
|
||||||
|
export interface StyleOptions {
|
||||||
|
document?: HTMLElement;
|
||||||
|
immediate?: boolean;
|
||||||
|
manual?: boolean;
|
||||||
|
name?: string;
|
||||||
|
id?: string;
|
||||||
|
media?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare function useStyle(
|
||||||
|
css: string,
|
||||||
|
options?: StyleOptions
|
||||||
|
): {
|
||||||
|
id: string;
|
||||||
|
css: any;
|
||||||
|
unload: () => void;
|
||||||
|
load: () => void;
|
||||||
|
isLoaded: boolean;
|
||||||
|
};
|
Loading…
Reference in New Issue