This repository was archived by the owner on Feb 4, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +46
-36
lines changed Expand file tree Collapse file tree 5 files changed +46
-36
lines changed Original file line number Diff line number Diff line change 1
- import './globals.d' ;
2
-
3
- declare class BemEntityName {
4
- constructor ( obj : BEMSDK . EntityName . Options ) ;
5
-
6
- readonly block : BEMSDK . EntityName . BlockName ;
7
- readonly elem : BEMSDK . EntityName . ElementName | undefined ;
8
- readonly mod : BEMSDK . EntityName . Modifier | undefined ;
9
- readonly modName : BEMSDK . EntityName . ModifierName | undefined ;
10
- readonly modVal : BEMSDK . EntityName . ModifierValue | undefined ;
11
- readonly type : BEMSDK . EntityName . Type ;
12
- readonly scope : BemEntityName | null ;
13
- readonly id : BEMSDK . EntityName . Id ;
14
-
15
- isSimpleMod ( ) : boolean | null ;
16
- isEqual ( entityName : BemEntityName ) : boolean ;
17
- belongsTo ( entityName : BemEntityName ) : boolean ;
18
- valueOf ( ) : BEMSDK . EntityName . Representation ;
19
- toJSON ( ) : BEMSDK . EntityName . Representation ;
20
- toString ( ) : string ;
21
- inspect ( depth : number , options : object ) : string ;
22
-
23
- static create ( obj : BEMSDK . EntityName . CreateOptions | string ) : BemEntityName ;
24
- static isBemEntityName ( entityName : any ) : boolean ;
25
- }
1
+ import BemEntityName from './types/entity-name.d' ;
26
2
27
3
export = BemEntityName ;
Original file line number Diff line number Diff line change 1
1
{
2
- "compilerOptions" : {
3
- "target" : " ES6" ,
4
- "module" : " commonjs"
5
- },
6
- "files" : [
7
- " index.js" ,
8
- " index.d.ts"
9
- ]
2
+ "compilerOptions" : {
3
+ "target" : " ES6" ,
4
+ "module" : " commonjs"
5
+ },
6
+ "include" : [
7
+ " lib" ,
8
+ " types"
9
+ ],
10
+ "exclude" : [
11
+ " node_modules"
12
+ ],
13
+ "files" : [
14
+ " index.js" ,
15
+ " index.d.ts"
16
+ ]
10
17
}
Original file line number Diff line number Diff line change 25
25
"typings" : " index.d.ts" ,
26
26
"files" : [
27
27
" lib/**" ,
28
+ " types/**" ,
28
29
" index.js" ,
29
- " index.d.ts" ,
30
- " globals.d.ts"
30
+ " index.d.ts"
31
31
],
32
32
"engines" : {
33
33
"node" : " >= 4.0"
56
56
"test" : " nyc ava" ,
57
57
"lint" : " npm run lint:js && npm run lint:dts" ,
58
58
"lint:js" : " eslint ." ,
59
- "lint:dts" : " tslint * *.d.ts" ,
59
+ "lint:dts" : " tslint types/ *.d.ts" ,
60
60
"coveralls" : " nyc report --reporter=text-lcov | coveralls"
61
61
},
62
62
"ava" : {
Original file line number Diff line number Diff line change
1
+ import './globals.d' ;
2
+
3
+ declare class BemEntityName {
4
+ constructor ( obj : BEMSDK . EntityName . Options ) ;
5
+
6
+ readonly block : BEMSDK . EntityName . BlockName ;
7
+ readonly elem : BEMSDK . EntityName . ElementName | undefined ;
8
+ readonly mod : BEMSDK . EntityName . Modifier | undefined ;
9
+ readonly modName : BEMSDK . EntityName . ModifierName | undefined ;
10
+ readonly modVal : BEMSDK . EntityName . ModifierValue | undefined ;
11
+ readonly type : BEMSDK . EntityName . Type ;
12
+ readonly scope : BemEntityName | null ;
13
+ readonly id : BEMSDK . EntityName . Id ;
14
+
15
+ isSimpleMod ( ) : boolean | null ;
16
+ isEqual ( entityName : BemEntityName ) : boolean ;
17
+ belongsTo ( entityName : BemEntityName ) : boolean ;
18
+ valueOf ( ) : BEMSDK . EntityName . Representation ;
19
+ toJSON ( ) : BEMSDK . EntityName . Representation ;
20
+ toString ( ) : string ;
21
+ inspect ( depth : number , options : object ) : string ;
22
+
23
+ static create ( obj : BEMSDK . EntityName . CreateOptions | string ) : BemEntityName ;
24
+ static isBemEntityName ( entityName : any ) : boolean ;
25
+ }
26
+
27
+ export = BemEntityName ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments