dependencyIdentifier.d.ts 632 B

123456789101112131415
  1. import { Ctor } from './dependencyItem';
  2. import { ForwardRef } from './dependencyForwardRef';
  3. export declare const IdentifierDecoratorSymbol: unique symbol;
  4. export type IdentifierDecorator<T> = {
  5. [IdentifierDecoratorSymbol]: true;
  6. (...args: any[]): void;
  7. /**
  8. * beautify console
  9. */
  10. toString(): string;
  11. type: T;
  12. };
  13. export declare function isIdentifierDecorator<T>(thing: any): thing is IdentifierDecorator<T>;
  14. export type DependencyIdentifier<T> = string | Ctor<T> | ForwardRef<T> | IdentifierDecorator<T>;
  15. export type NormalizedDependencyIdentifier<T> = Exclude<DependencyIdentifier<T>, ForwardRef<T>>;