mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 00:59:29 +08:00
10 lines
220 B
TypeScript
10 lines
220 B
TypeScript
|
|
import ent = require("ent");
|
|
|
|
// encode
|
|
const s: string = ent.encode("foo");
|
|
const s2: string = ent.encode("foo", { numeric: true, named: true, special: { foo: true } });
|
|
|
|
// decode
|
|
const t: string = ent.decode("foo");
|