We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ea1c5b commit e75a0e9Copy full SHA for e75a0e9
unorm/unorm-tests.ts
@@ -0,0 +1,11 @@
1
+/// <reference path="unorm.d.ts" />
2
+import unorm = require("unorm");
3
+
4
+function listNormalizations(raw: string) {
5
+ return [
6
+ unorm.nfd(raw),
7
+ unorm.nfkd(raw),
8
+ unorm.nfc(raw),
9
+ unorm.nfkc(raw),
10
+ ];
11
+}
unorm/unorm.d.ts
@@ -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;
0 commit comments