This repository has been archived by the owner on Feb 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from bem-sdk/fix/typings
Fix typings
- Loading branch information
Showing
22 changed files
with
110 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
import './globals.d'; | ||
|
||
declare class BemEntityName { | ||
constructor(obj: BemSDK.EntityName.Options); | ||
|
||
readonly block: string; | ||
readonly elem: string | undefined; | ||
readonly mod: BemSDK.EntityName.ModifierRepresentation | undefined; | ||
readonly modName: string | undefined; | ||
readonly modVal: string | true | undefined; | ||
readonly type: BemSDK.EntityName.TYPE; | ||
readonly scope: BemEntityName | null; | ||
readonly id: string; | ||
|
||
isSimpleMod(): boolean | null; | ||
isEqual(entityName: BemEntityName): boolean; | ||
belongsTo(entityName: BemEntityName): boolean; | ||
valueOf(): BemSDK.EntityName.StrictRepresentation; | ||
toJSON(): BemSDK.EntityName.StrictRepresentation; | ||
toString(): string; | ||
inspect(depth: number, options: object): string; | ||
|
||
static create(obj: BemSDK.EntityName.NonStrictRepresentation | string): BemEntityName; | ||
static isBemEntityName(entityName: any): boolean; | ||
} | ||
import BemEntityName from './types/entity-name.d'; | ||
|
||
export = BemEntityName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES6", | ||
"module": "commonjs" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
] | ||
"compilerOptions": { | ||
"target": "ES6", | ||
"module": "commonjs" | ||
}, | ||
"include": [ | ||
"lib", | ||
"types" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import './globals.d'; | ||
|
||
declare class BemEntityName { | ||
constructor(obj: BEMSDK.EntityName.Options); | ||
|
||
readonly block: BEMSDK.EntityName.BlockName; | ||
readonly elem: BEMSDK.EntityName.ElementName | undefined; | ||
readonly mod: BEMSDK.EntityName.Modifier | undefined; | ||
readonly modName: BEMSDK.EntityName.ModifierName | undefined; | ||
readonly modVal: BEMSDK.EntityName.ModifierValue | undefined; | ||
readonly type: BEMSDK.EntityName.Type; | ||
readonly scope: BemEntityName | null; | ||
readonly id: BEMSDK.EntityName.Id; | ||
|
||
isSimpleMod(): boolean | null; | ||
isEqual(entityName: BemEntityName): boolean; | ||
belongsTo(entityName: BemEntityName): boolean; | ||
valueOf(): BEMSDK.EntityName.Representation; | ||
toJSON(): BEMSDK.EntityName.Representation; | ||
toString(): string; | ||
inspect(depth: number, options: object): string; | ||
|
||
static create(obj: BEMSDK.EntityName.CreateOptions | string): BemEntityName; | ||
static isBemEntityName(entityName: any): boolean; | ||
} | ||
|
||
export = BemEntityName; |
Oops, something went wrong.