From 60d0049eb16cb4cd413ccf27670e6227c3781fdf Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 3 Jul 2023 23:32:41 +0100 Subject: [PATCH] Create UseStyle.d.ts --- components/lib/usestyle/UseStyle.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 components/lib/usestyle/UseStyle.d.ts diff --git a/components/lib/usestyle/UseStyle.d.ts b/components/lib/usestyle/UseStyle.d.ts new file mode 100644 index 000000000..d0111f07d --- /dev/null +++ b/components/lib/usestyle/UseStyle.d.ts @@ -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; +};