ui/node_modules/tailwindcss/resolveConfig.d.ts

13 lines
362 B
TypeScript
Raw Normal View History

import type { Config, ResolvableTo } from './types/config'
type UnwrapResolvables<T> = {
[K in keyof T]: T[K] extends ResolvableTo<infer R> ? R : T[K]
}
type ResolvedConfig<T extends Config> = Omit<T, 'theme'> & {
theme: UnwrapResolvables<T['theme']>
}
declare function resolveConfig<T extends Config>(config: T): ResolvedConfig<T>
export = resolveConfig