-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add dtslint and Cypress static types (#1044)
* chore: Add dtslint and Cypress static types * chore: Fix types location for cli build * chore: Removed api from api command paths * chore: Remove semicolons from type definitions * chore: Removed semicolons not caught by tslint * chore: Add type tests
- Loading branch information
1 parent
4d41d3d
commit 6db7a83
Showing
11 changed files
with
1,236 additions
and
922 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
// Shim definition to export a namespace. Cypress is actually a global module | ||
// so import/export isn't allowed there. We import here and define a global module | ||
// so that Cypress can get and use the Blob type | ||
|
||
// tslint:disable-next-line:no-implicit-dependencies | ||
import * as blobUtil from 'blob-util' | ||
|
||
export = BlobUtil | ||
export as namespace BlobUtil | ||
|
||
declare namespace BlobUtil { | ||
type BlobUtilStatic = typeof blobUtil | ||
} |
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,11 @@ | ||
// Shim definition to export a namespace. Cypress is actually a global module | ||
// so import/export isn't allowed there. We import here and define a global module | ||
// so that Cypress can get and use the Blob type | ||
import * as BluebirdStatic from 'bluebird' | ||
|
||
export = Bluebird | ||
export as namespace Bluebird | ||
|
||
declare namespace Bluebird { | ||
type BluebirdStatic = typeof BluebirdStatic | ||
} |
Oops, something went wrong.