UNPKG
rebem-classname
Version:
latest (0.4.0)
0.4.0
0.3.0
0.2.0
0.1.0
Helpers for composing and parsing BEM classNames
github.com/rebem/classname
rebem/classname
rebem-classname
/
build
/
index.d.ts
13 lines
(11 loc)
•
280 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
interface
BEMEntity
{
tag
?:
string
;
block
?:
string
;
elem
?:
string
;
mods
?: { [
key
:
string
]:
string
|
number
|
boolean
; };
mix
?:
BEMEntity
|
BEMEntity
[];
className
?:
string
; }
export
declare
function
stringify
(
entity
:
BEMEntity
):
string
;