Forráskód Böngészése

Update the sanitize-html type definition file.

A. Darian 8 éve
szülő
commit
5f5631c2d4
1 módosított fájl, 5 hozzáadás és 9 törlés
  1. 5 9
      typings/sanitize-html/sanitize-html.d.ts

+ 5 - 9
typings/sanitize-html/sanitize-html.d.ts

@@ -1,22 +1,22 @@
 // Type definitions for sanitize-html 1.12.0
 // Project: https://github.com/punkave/sanitize-html
+// Definitions by: Rogier Schouten <https://github.com/rogierschouten>, Afshin Darian <https://github.com/afshin>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+
 declare function sanitize(dirty: string, options?: sanitize.IOptions): string;
 
 
 declare namespace sanitize {
-  export
   type Attributes = { [attr: string]: string };
 
 
-  export
   type Tag = { tagName: string; attributes: Attributes; };
 
 
-  export
   type Transformer = (tagName: string, attributes: Attributes) => Tag;
 
 
-  export
   interface IDefaults {
     allowedAttributes: { [index: string]: string[] };
     allowedSchemes: string[];
@@ -26,7 +26,6 @@ declare namespace sanitize {
   }
 
 
-  export
   interface IFrame {
     tag: string;
     attributes: { [index: string]: string };
@@ -35,7 +34,6 @@ declare namespace sanitize {
   }
 
 
-  export
   interface IOptions {
     allowedAttributes?: { [index: string]: string[] };
     allowedClasses?: { [index: string]: string[] };
@@ -47,15 +45,13 @@ declare namespace sanitize {
   }
 
 
-  export
   var defaults: IDefaults;
 
 
-  export
   function simpleTransform(tagName: string, attributes: Attributes, merge?: boolean): Transformer;
 }
 
 
 declare module 'sanitize-html' {
   export = sanitize;
-}
+}