Skip to content

Commit

Permalink
fix(classname): formatter type
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelPivkin authored and yarastqt committed Apr 29, 2021
1 parent 6b805bf commit 04e8b5c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/classname/classname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ export type ClassNameInitilizer = (blockName: string, elemName?: string) => Clas
/**
* BEM Entity className formatter.
*/
export type ClassNameFormatter = (
elemNameOrBlockMods?: NoStrictEntityMods | string | null,
declare function classNameFormatter(): string
declare function classNameFormatter(elemNameOrBlockMods: null, elemMix: ClassNameList): string
declare function classNameFormatter(
elemNameOrBlockMods: NoStrictEntityMods | string,
elemModsOrBlockMix?: NoStrictEntityMods | ClassNameList | null,
elemMix?: ClassNameList,
) => string
): string

export type ClassNameFormatter = typeof classNameFormatter

/**
* Settings for the naming convention.
Expand Down

0 comments on commit 04e8b5c

Please sign in to comment.