amis-rpc-design/node_modules/tailwindcss/resolveConfig.d.ts

13 lines
362 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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