first commit
This commit is contained in:
17
node_modules/vant/es/utils/create.d.ts
generated
vendored
Normal file
17
node_modules/vant/es/utils/create.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export declare function createTranslate(name: string): (path: string, ...args: unknown[]) => any;
|
||||
export type Translate = ReturnType<typeof createTranslate>;
|
||||
export type Mod = string | {
|
||||
[key: string]: any;
|
||||
};
|
||||
export type Mods = Mod | Mod[];
|
||||
/**
|
||||
* bem helper
|
||||
* b() // 'button'
|
||||
* b('text') // 'button__text'
|
||||
* b({ disabled }) // 'button button--disabled'
|
||||
* b('text', { disabled }) // 'button__text button__text--disabled'
|
||||
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
||||
*/
|
||||
export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
|
||||
export type BEM = ReturnType<typeof createBEM>;
|
||||
export declare function createNamespace(name: string): readonly [string, (el?: Mods, mods?: Mods) => Mods, (path: string, ...args: unknown[]) => any];
|
||||
Reference in New Issue
Block a user