Skip to content

Commit e75a0e9

Browse files
committed
Add unorm.d.ts header and unorm tests file
1 parent 5ea1c5b commit e75a0e9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

unorm/unorm-tests.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Type definitions for unorm 1.3.3
2+
// Project: https://github.com/walling/unorm
3+
// Definitions by: Christopher Brown <https://github.com/chbrown>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
16
declare module unorm {
27
interface Static {
38
nfd(str: string): string;

0 commit comments

Comments
 (0)