-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
types.d.ts
56 lines (44 loc) · 1.67 KB
/
types.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
declare module '*.css' {
const css: string
export default css
}
declare module 'tailwindcss/src/lib/expandApplyAtRules.js' {
export default function expandApplyAtRules(): void
}
declare module 'tailwindcss/src/lib/generateRules.js' {
export function generateRules(): void
}
declare module 'tailwindcss/src/lib/setupContextUtils.js' {
import { type Variant } from '@tailwindcss/language-service'
import { type Config } from 'tailwindcss'
interface ChangedContent {
content: string
extension?: string
}
export interface JitContext {
changedContent: ChangedContent[]
getClassList: () => string[]
getVariants: () => Variant[] | undefined
tailwindConfig: Config
}
export function createContext(config: Config, changedContent?: ChangedContent[]): JitContext
}
declare module 'tailwindcss/src/processTailwindFeatures.js' {
import { type AtRule, type Plugin, type Result, type Root } from 'postcss'
import { type createContext, type JitContext } from 'tailwindcss/src/lib/setupContextUtils.js'
type SetupContext = (root: Root, result: Result) => JitContext
interface ProcessTailwindFeaturesCallbackOptions {
applyDirectives: Set<AtRule>
createContext: typeof createContext
registerDependency: () => unknown
tailwindDirectives: Set<string>
}
export default function processTailwindFeatures(
callback: (options: ProcessTailwindFeaturesCallbackOptions) => SetupContext
): Plugin
}
declare module 'tailwindcss/src/public/resolve-config.js' {
import { type TailwindConfig } from 'monaco-tailwindcss'
import { type Config } from 'tailwindcss'
export default function resolveConfig(tailwindConfig: TailwindConfig): Config
}