static-injector
Version:
Angular 依赖注入独立版本;Angular dependency injection standalone version
30 lines (29 loc) • 885 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Type } from '../interface/type';
/**
* An interface implemented by all Angular type decorators, which allows them to be used as
* decorators as well as Angular syntax.
*
* ```ts
* @ng.Component({...})
* class MyClass {...}
* ```
*
* @publicApi
*/
export interface TypeDecorator {
/**
* Invoke as decorator.
*/
<T extends Type<any>>(type: T): T;
(target: object, propertyKey?: string | symbol, parameterIndex?: number): void;
(target: unknown, context: unknown): void;
}
export declare const PARAMETERS = "__parameters__";
export declare function makeParamDecorator(name: string, props?: (...args: any[]) => any, parentClass?: any): any;