DefinitelyTyped/types/uuencode/index.d.ts
synaestheory ba7e6c806c
Add types/uuencode (#45457)
* Add types/uuencode

* Update maintainer github information

* Update encode/decode parameter to also accept Buffer.

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Add node to tsconfig types

* Remove node from types in tsconfig

* Add triple slash reference types comment for node types

* add test for decode with buffer.

* Remove test reference to node type

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-06-21 23:04:15 -07:00

10 lines
372 B
TypeScript

// Type definitions for uuencode 0.0
// Project: https://github.com/zacbarton/node-uuencode#readme
// Definitions by: synaestheory <https://github.com/synaesthoery>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
export function decode(str: string | Buffer): string;
export function encode(str: string | Buffer): string;