bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/web/static/js/angular-sanitize.d.ts (about) 1 // Type definitions for Angular JS 1.3 (ngSanitize module) 2 // Project: http://angularjs.org 3 // Definitions by: Diego Vilar <http://github.com/diegovilar> 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 6 7 /// <reference path="angular.d.ts" /> 8 9 declare module "angular-sanitize" { 10 var _: string; 11 export = _; 12 } 13 14 /////////////////////////////////////////////////////////////////////////////// 15 // ngSanitize module (angular-sanitize.js) 16 /////////////////////////////////////////////////////////////////////////////// 17 declare module angular.sanitize { 18 19 /////////////////////////////////////////////////////////////////////////// 20 // SanitizeService 21 // see http://docs.angularjs.org/api/ngSanitize.$sanitize 22 /////////////////////////////////////////////////////////////////////////// 23 interface ISanitizeService { 24 (html: string): string; 25 } 26 27 /////////////////////////////////////////////////////////////////////////// 28 // Filters included with the ngSanitize 29 // see https://github.com/angular/angular.js/tree/v1.2.0/src/ngSanitize/filter 30 /////////////////////////////////////////////////////////////////////////// 31 export module filter { 32 33 // Finds links in text input and turns them into html links. 34 // Supports http/https/ftp/mailto and plain email address links. 35 // see http://code.angularjs.org/1.2.0/docs/api/ngSanitize.filter:linky 36 interface ILinky { 37 (text: string, target?: string): string; 38 } 39 } 40 }