Merge pull request #34743 from JasonHK/master

Added type definitions for b64-lite 1.3
This commit is contained in:
Armando Aguirre
2019-04-16 12:40:08 -07:00
committed by GitHub
4 changed files with 43 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import * as b64lite from "b64-lite";
b64lite.btoa(""); // $ExpectType string
b64lite.toBase64(""); // $ExpectType string
b64lite.atob(""); // $ExpectType string
b64lite.fromBase64(""); // $ExpectType string
+12
View File
@@ -0,0 +1,12 @@
// Type definitions for b64-lite 1.3
// Project: https://github.com/kevlened/b64-lite#readme
// Definitions by: JasonHK <https://github.com/JasonHK>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace b64Lite;
export function btoa(source: string): string;
export function toBase64(source: string): string;
export function atob(encoded: string): string;
export function fromBase64(encoded: string): string;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"b64-lite-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }