@types/gulp-ng-annotate
TypeScript icon, indicating that this package has built-in type declarations

0.0.36 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-ng-annotate

Weekly Downloads

642

Version

0.0.36

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • types