We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb29057 commit c793276Copy full SHA for c793276
src/interface/IMarshaller.ts
@@ -1,7 +1,9 @@
1
+import {TypeOf} from '@wessberg/typedetector';
2
export declare type ConstructorArgument = any;
3
export declare type NewableGeneric<U> = new (...args: ConstructorArgument[]) => U;
4
export declare type Newable<U> = NewableGeneric<U>|StringConstructor|NumberConstructor|BooleanConstructor|FunctionConstructor|ObjectConstructor|ArrayConstructor|SetConstructor|SymbolConstructor;
5
6
export interface IMarshaller {
7
marshal<T, U> (data: T, hint?: U): U|null|undefined;
8
+ getTypeOf<T> (data: T): TypeOf;
9
}
0 commit comments