mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add unorm.d.ts header and unorm tests file
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/// <reference path="unorm.d.ts" />
|
||||
import unorm = require("unorm");
|
||||
|
||||
function listNormalizations(raw: string) {
|
||||
return [
|
||||
unorm.nfd(raw),
|
||||
unorm.nfkd(raw),
|
||||
unorm.nfc(raw),
|
||||
unorm.nfkc(raw),
|
||||
];
|
||||
}
|
||||
Vendored
+5
@@ -1,3 +1,8 @@
|
||||
// Type definitions for unorm 1.3.3
|
||||
// Project: https://github.com/walling/unorm
|
||||
// Definitions by: Christopher Brown <https://github.com/chbrown>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module unorm {
|
||||
interface Static {
|
||||
nfd(str: string): string;
|
||||
|
||||
Reference in New Issue
Block a user