diff --git a/escape-html/escape-html-tests.ts b/escape-html/escape-html-tests.ts new file mode 100644 index 0000000000..0c8266559d --- /dev/null +++ b/escape-html/escape-html-tests.ts @@ -0,0 +1,5 @@ +/// + +import * as escapeHTML from "escape-html"; + +const result = escapeHTML("foo & bar"); diff --git a/escape-html/escape-html.d.ts b/escape-html/escape-html.d.ts new file mode 100644 index 0000000000..f3b57e005a --- /dev/null +++ b/escape-html/escape-html.d.ts @@ -0,0 +1,11 @@ +// Type definitions for escape-html +// Project: https://github.com/component/escape-html +// Definitions by: Elisée MAURER +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "escape-html" { + function escapeHTML(text: string): string; + namespace escapeHTML {} + + export = escapeHTML; +}