Skip to content

Commit

Permalink
Merge pull request #103 from illiaChaban/patch-1
Browse files Browse the repository at this point in the history
add proper types
  • Loading branch information
FredericHeem authored Jun 10, 2024
2 parents 6878d24 + f24eff3 commit 7a3c933
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions bau-css/bau-css.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)[]

0 comments on commit 7a3c933

Please sign in to comment.