9 lines
296 B
TypeScript
9 lines
296 B
TypeScript
import { Constructor } from '../utils';
|
|
import { Serializer } from './interface';
|
|
export declare function serialize<T extends Constructor>(constructor: T): {
|
|
new (...args: any[]): {
|
|
[x: string]: any;
|
|
serialize<U>(serializer: Serializer<U>): U;
|
|
};
|
|
name: string;
|
|
} & T;
|