pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
export * from '../types'
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export interface RegisteredCache {
|
||||
[key: string]: string
|
||||
}
|
||||
|
||||
export interface StyleSheet {
|
||||
container: HTMLElement
|
||||
nonce?: string
|
||||
key: string
|
||||
insert(rule: string): void
|
||||
flush(): void
|
||||
tags: Array<HTMLStyleElement>
|
||||
}
|
||||
|
||||
export interface EmotionCache {
|
||||
inserted: {
|
||||
[key: string]: string | true
|
||||
}
|
||||
registered: RegisteredCache
|
||||
sheet: StyleSheet
|
||||
key: string
|
||||
compat?: true
|
||||
nonce?: string
|
||||
insert(
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
): string | void
|
||||
}
|
||||
|
||||
export interface SerializedStyles {
|
||||
name: string
|
||||
styles: string
|
||||
map?: string
|
||||
next?: SerializedStyles
|
||||
}
|
||||
|
||||
export const isBrowser: boolean
|
||||
|
||||
export function getRegisteredStyles(
|
||||
registered: RegisteredCache,
|
||||
registeredStyles: Array<string>,
|
||||
classNames: string
|
||||
): string
|
||||
|
||||
export function registerStyles(
|
||||
cache: EmotionCache,
|
||||
serialized: SerializedStyles,
|
||||
isStringTag: boolean
|
||||
): void
|
||||
|
||||
export function insertStyles(
|
||||
cache: EmotionCache,
|
||||
serialized: SerializedStyles,
|
||||
isStringTag: boolean
|
||||
): string | void
|
||||
Reference in new issue
Block a user