Files
DefinitelyTyped/types/quoted-printable/index.d.ts
2017-03-24 14:27:52 -07:00

26 lines
897 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Type definitions for quoted-printable v0.2.1
// Project: https://github.com/mathiasbynens/quoted-printable
// Definitions by: Jeffery Grajkowski <https://github.com/pushplay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* A string representing the semantic version number.
*/
export const version: string;
/**
* This function takes an encoded byte string (the input
* parameter) and Quoted-Printable-encodes it. Each item
* in the input string represents an octet as per the
* desired character encoding.
*/
export function encode(input: string): string;
/**
* This function takes a string of text (the text parameter)
* and Quoted-Printable-decodes it. The return value is a
* byte string, i.e. a string of which each item represents
* an octet as per the character encoding thats being used.
*/
export function decode(input: string): string;