Skip to content

Commit c793276

Browse files
committed
Added the 'getTypeOf' method to the interface
1 parent bb29057 commit c793276

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interface/IMarshaller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import {TypeOf} from '@wessberg/typedetector';
12
export declare type ConstructorArgument = any;
23
export declare type NewableGeneric<U> = new (...args: ConstructorArgument[]) => U;
34
export declare type Newable<U> = NewableGeneric<U>|StringConstructor|NumberConstructor|BooleanConstructor|FunctionConstructor|ObjectConstructor|ArrayConstructor|SetConstructor|SymbolConstructor;
45

56
export interface IMarshaller {
67
marshal<T, U> (data: T, hint?: U): U|null|undefined;
8+
getTypeOf<T> (data: T): TypeOf;
79
}

0 commit comments

Comments
 (0)