mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(types): improve intellisense with colors (#25347)
This commit is contained in:
5
core/src/interface.d.ts
vendored
5
core/src/interface.d.ts
vendored
@@ -133,7 +133,10 @@ export type PredefinedColors =
|
||||
| 'light'
|
||||
| 'medium'
|
||||
| 'dark';
|
||||
export type Color = PredefinedColors | string;
|
||||
|
||||
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
|
||||
|
||||
export type Color = LiteralUnion<PredefinedColors, string>;
|
||||
export type Mode = 'ios' | 'md';
|
||||
export type ComponentTags = string;
|
||||
// eslint-disable-next-line
|
||||
|
||||
Reference in New Issue
Block a user