mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
711 B
TypeScript
21 lines
711 B
TypeScript
// Type definitions for base64-async 2.1
|
|
// Project: https://github.com/lukechilds/base64-async
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export = base64Async;
|
|
|
|
declare function base64Async(input: Buffer, options?: base64Async.Options): Promise<string>;
|
|
declare function base64Async(input: string, options?: base64Async.Options): Promise<Buffer>;
|
|
|
|
declare namespace base64Async {
|
|
function encode(input: Buffer, options?: Options): Promise<string>;
|
|
function decode(input: string, options?: Options): Promise<Buffer>;
|
|
|
|
interface Options {
|
|
chunkSize?: number;
|
|
}
|
|
}
|