Installation
npm install --save @types/fold-to-ascii
Summary
This package contains type definitions for fold-to-ascii (https://github.com/mplatt/fold-to-ascii).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fold-to-ascii.
index.d.ts
/**
* Replace all known non-ASCII characters with appropriate replacements,
* replace the unknown ones with a fallback
*
* @param str Input string containing ASCII and/or non-ASCII characters
* @param replacement Fallback for unknown characters in the input string
* (defaults to empty string)
*/
export function foldReplacing(str?: string, replacement?: string): string;
/**
* Replace all known non-ASCII characters with appropriate replacements,
* maintain the unknown ones
*
* @param str Input string containing ASCII and/or non-ASCII characters
*/
export function foldMaintaining(str?: string): string;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Morgan Zolob.