mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
commit
5b5759e17b
8
types/fast64/fast64-tests.ts
Normal file
8
types/fast64/fast64-tests.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import * as fast64 from "fast64";
|
||||
|
||||
fast64.encode(""); // $ExpectType string
|
||||
fast64.decode(""); // $ExpectType string
|
||||
fast64.decode("", { uint8Array: true }); // $ExpectType Uint8Array
|
||||
fast64.urlencode(""); // $ExpectType string
|
||||
fast64.urldecode(""); // $ExpectType string
|
||||
fast64.urldecode("", { uint8Array: true }); // $ExpectType Uint8Array
|
||||
15
types/fast64/index.d.ts
vendored
Normal file
15
types/fast64/index.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Type definitions for fast64 0.5
|
||||
// Project: https://github.com/superhuman/fast64
|
||||
// Definitions by: Rares Matei <https://github.com/rarmatei>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface Options {
|
||||
uint8Array: boolean;
|
||||
}
|
||||
|
||||
export function encode(value: string): string;
|
||||
export function decode(base64: string): string;
|
||||
export function decode(base64: string, options: Options): Uint8Array;
|
||||
export function urlencode(value: string): string;
|
||||
export function urldecode(base64: string): string;
|
||||
export function urldecode(base64: string, options: Options): Uint8Array;
|
||||
23
types/fast64/tsconfig.json
Normal file
23
types/fast64/tsconfig.json
Normal 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",
|
||||
"fast64-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/fast64/tslint.json
Normal file
1
types/fast64/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user