generated from wbkd/webpack-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.d.ts
34 lines (24 loc) · 895 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// based on src/index.js
type StyleObject = {
[key: string]: unknown;
};
type UniqueSpace = symbol | string;
type Computed = (dependencies?: Array<any>) => StyleObject;
type TagStyles = (strings: string[], expressions: string[]) => StyleObject;
type UseStyles = {
(): (dependencies?: Array<any>) => TagStyles;
namespace: UniqueSpace;
getConstant: (name: string) => any;
};
export function useGlobalStyles(
namespace?: UniqueSpace,
dependencies?: Array<any>,
): TagStyles;
export function GlobalUse(rawStyle: string, namespace?: UniqueSpace): Computed;
export function GlobalStyles(definition: StyleObject, namespace?: UniqueSpace): void;
export function Styles(
definition: StyleObject,
namespace?: UniqueSpace,
): UseStyles;
export function getConstant(name: string, namespace?: UseStyles | UniqueSpace): any;
export function setSeparator(newSeparator: string): void;