dependencyQuantity.d.ts 749 B

1234567891011121314151617181920
  1. import { DependencyIdentifier } from './dependencyIdentifier';
  2. import { Quantity } from './types';
  3. export declare function checkQuantity(id: DependencyIdentifier<any>, quantity: Quantity, length: number): void;
  4. export declare function retrieveQuantity<T>(quantity: Quantity, arr: T[]): T[] | T;
  5. interface ManyDecorator {
  6. (id?: DependencyIdentifier<any>): any;
  7. new (): ManyDecorator;
  8. }
  9. export declare const Many: ManyDecorator;
  10. interface OptionalDecorator {
  11. (id?: DependencyIdentifier<any>): any;
  12. new (): OptionalDecorator;
  13. }
  14. export declare const Optional: OptionalDecorator;
  15. interface InjectDecorator {
  16. (id: DependencyIdentifier<any>): any;
  17. new (): InjectDecorator;
  18. }
  19. export declare const Inject: InjectDecorator;
  20. export {};