Add the atob & btoa npm module definitions (#25416)

* feat(types): add the atob btoa npm module definitions

* style(lint): shorten typescript version

* chore(tslint): remove unnecessary rules

* chore(tslint): fix linting errors
This commit is contained in:
John Wright
2018-05-07 11:49:20 -07:00
committed by Sheetal Nandi
parent 140adad631
commit e1a9b0af73
8 changed files with 68 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import atob from 'atob';
atob('foo');
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for atob 2.1
// Project: https://git.coolaj86.com/coolaj86/atob.js.git
// Definitions by: John Wright <https://github.com/johngeorgewright>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export default function(str: string): string;
+21
View File
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"lib": ["es6"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"atob-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}
+3
View File
@@ -0,0 +1,3 @@
import btoa from 'btoa';
btoa('foo');
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for btoa 1.2
// Project: https://git.coolaj86.com/coolaj86/btoa.js
// Definitions by: John Wright <https://github.com/johngeorgewright>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export default function(str: string): string;
+21
View File
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"lib": ["es6"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"btoa-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}