2024-07-23 16:45:02 +08:00
|
|
|
import type {
|
|
|
|
GlobalToken as GlobalTokenTypeUtil,
|
2024-07-23 16:53:24 +08:00
|
|
|
OverrideTokenMap as OverrideTokenTypeUtil,
|
2024-07-23 17:01:58 +08:00
|
|
|
FullToken as FullTokenTypeUtil,
|
|
|
|
TokenMapKey,
|
2024-07-23 16:45:02 +08:00
|
|
|
} from '@ant-design/cssinjs-utils';
|
|
|
|
|
|
|
|
import type { AliasToken } from './alias';
|
|
|
|
import type { ComponentTokenMap } from './components';
|
|
|
|
|
|
|
|
|
|
|
|
/** Final token which contains the components level override */
|
|
|
|
export type GlobalToken = GlobalTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
2024-07-23 16:53:24 +08:00
|
|
|
|
|
|
|
export type OverrideToken = OverrideTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
2024-07-23 17:01:58 +08:00
|
|
|
|
2024-07-23 17:06:15 +08:00
|
|
|
export type OverrideComponent = TokenMapKey<ComponentTokenMap>;
|
|
|
|
|
|
|
|
export type FullToken<C extends TokenMapKey<ComponentTokenMap>> = FullTokenTypeUtil<ComponentTokenMap, AliasToken, C>;
|