UNPKG

897 BTypeScriptView Raw
1import { InjectionToken, Type } from '@angular/core';
2export declare function getSourceForInstance<T>(instance: T): T;
3export declare function isClassInstance(obj: object): boolean;
4export declare function isClass(classOrRecord: Type<unknown> | Record<string, unknown>): classOrRecord is Type<unknown>;
5export declare function getClasses(classesAndRecords: Array<Type<unknown> | Record<string, unknown>>): Type<unknown>[];
6export declare function isToken(tokenOrRecord: Type<unknown> | InjectionToken<unknown> | Record<string, unknown>): tokenOrRecord is Type<unknown> | InjectionToken<unknown>;
7export interface NextNotification<T> {
8 kind: 'N';
9 value: T;
10}
11export interface ErrorNotification {
12 kind: 'E';
13 error: any;
14}
15export interface CompleteNotification {
16 kind: 'C';
17}
18export type ObservableNotification<T> = NextNotification<T> | ErrorNotification | CompleteNotification;