mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Add escape-html definition file
This commit is contained in:
5
escape-html/escape-html-tests.ts
Normal file
5
escape-html/escape-html-tests.ts
Normal 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
11
escape-html/escape-html.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user