From f24eff32c542d6dfd69bb231538484f6ecc19907 Mon Sep 17 00:00:00 2001 From: Illia Chaban Date: Sun, 9 Jun 2024 00:49:01 -0400 Subject: [PATCH] Update bau-css.d.ts add proper types --- bau-css/bau-css.d.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bau-css/bau-css.d.ts b/bau-css/bau-css.d.ts index ef23814c..512b725a 100644 --- a/bau-css/bau-css.d.ts +++ b/bau-css/bau-css.d.ts @@ -2,7 +2,18 @@ export default function BauCss(input?: { window?: Window; target?: HTMLElement; }): { - css: (any) => string; - keyframes: (any) => string; - createGlobalStyles: (any) => any; + css: ( + tag: TemplateStringsArray, + ...tagArgs: TagArgs + ) => string; + keyframes: ( + tag: TemplateStringsArray, + ...tagArgs: TagArgs + ) => string; + createGlobalStyles: ( + tag: TemplateStringsArray, + ...tagArgs: TagArgs + ) => any; }; + +type TagArgs = (string | number)[]