mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #34743 from JasonHK/master
Added type definitions for b64-lite 1.3
This commit is contained in:
@@ -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
|
||||
Vendored
+12
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user