forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-ng-annotate.d.ts
61 lines (53 loc) · 1.62 KB
/
gulp-ng-annotate.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Type definitions for gulp-ng-annotate
// Project: https://github.com/Kagami/gulp-ng-annotate
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "gulp-ng-annotate" {
namespace ngAnnotate {
interface NgAnnotate {
(option?: Option): NodeJS.ReadWriteStream;
}
//TODO: Should be on ng-annotate module
interface Option {
/**
* Add annotations where non-existing
*/
add?: boolean;
/**
* Remove all existing annotations
*/
remove?: boolean;
/**
* List optional matchers
*/
list?: boolean;
/**
* Restrict matching further or to expand matching
*/
regexp?: string;
/**
* Enable optional matcher
*/
enable?: boolean;
/**
* Output '$scope' instead of "$scope".
*/
single_quotes?: boolean;
/**
* Rename providers (services, factories, controllers, etc.) with a new name when declared and referenced through annotation
*/
rename?: RenameOption[];
/**
* Load a user plugin with the provided path
*/
plugin?: any[];
}
interface RenameOption {
from: string;
to: string;
}
}
var ngAnnotate: ngAnnotate.NgAnnotate;
export = ngAnnotate;
}