Installation
npm install --save @types/gulp-ng-annotate
Summary
This package contains type definitions for gulp-ng-annotate (https://github.com/Kagami/gulp-ng-annotate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-ng-annotate.
index.d.ts
/// <reference types="node" />
declare namespace ngAnnotate {
interface NgAnnotate {
(option?: Option): NodeJS.ReadWriteStream;
}
// TODO: Should be on ng-annotate module
interface Option {
/**
* Add annotations where non-existing
*/
add?: boolean | undefined;
/**
* Remove all existing annotations
*/
remove?: boolean | undefined;
/**
* List optional matchers
*/
list?: boolean | undefined;
/**
* Restrict matching further or to expand matching
*/
regexp?: string | undefined;
/**
* Enable optional matcher
*/
enable?: boolean | undefined;
/**
* Output '$scope' instead of "$scope".
*/
single_quotes?: boolean | undefined;
/**
* Rename providers (services, factories, controllers, etc.) with a new name when declared and referenced through annotation
*/
rename?: RenameOption[] | undefined;
/**
* Load a user plugin with the provided path
*/
plugin?: any[] | undefined;
}
interface RenameOption {
from: string;
to: string;
}
}
declare var ngAnnotate: ngAnnotate.NgAnnotate;
export = ngAnnotate;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Qubo.