mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
// Type definitions for Angular JS 1.2 (ngSanitize module)
|
|
// Project: http://angularjs.org
|
|
// Definitions by: Diego Vilar <http://github.com/diegovilar>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// ngSanitize module (angular-sanitize.js)
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
declare namespace ng.sanitize {
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// SanitizeService
|
|
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/service/$sanitize
|
|
///////////////////////////////////////////////////////////////////////////
|
|
interface ISanitizeService {
|
|
(html: string): string;
|
|
}
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// Filters included with the ngSanitize
|
|
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter
|
|
///////////////////////////////////////////////////////////////////////////
|
|
export module filter {
|
|
|
|
// Finds links in text input and turns them into html links.
|
|
// Supports http/https/ftp/mailto and plain email address links.
|
|
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter/linky
|
|
interface ILinky {
|
|
(text: string, target?: string): string;
|
|
}
|
|
}
|
|
}
|