Create UseStyle.d.ts

pull/4107/head
mertsincan 2023-07-03 23:32:41 +01:00
parent f2fbee878d
commit 60d0049eb1
1 changed files with 19 additions and 0 deletions

19
components/lib/usestyle/UseStyle.d.ts vendored Normal file
View File

@ -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;
};