mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Add escape-html definition file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/// <reference path="./escape-html.d.ts" />
|
||||
|
||||
import * as escapeHTML from "escape-html";
|
||||
|
||||
const result = escapeHTML("foo & bar");
|
||||
Vendored
+11
@@ -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