Add escape-html definition file

This commit is contained in:
Elisée Maurer
2016-03-20 16:50:50 +01:00
parent 6766ed1d0f
commit 434d7ebc70
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
/// <reference path="./escape-html.d.ts" />
import * as escapeHTML from "escape-html";
const result = escapeHTML("foo & bar");

11
escape-html/escape-html.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
// Type definitions for escape-html
// Project: https://github.com/component/escape-html
// Definitions by: Elisée MAURER <https://github.com/elisee/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "escape-html" {
function escapeHTML(text: string): string;
namespace escapeHTML {}
export = escapeHTML;
}