UNPKG

@buka/class-transformer-extra

Version:

class-transformer-extra contains methods that's aren't included in the class-transform package.

9 lines (8 loc) 396 B
import { TransformOptions } from 'class-transformer'; export interface SplitTransformOptions extends TransformOptions { /** * if the value cannot be transformed, the default value will be used. */ default?: number | string | boolean | undefined | ((value: unknown) => any); } export declare function Split(separator: string, options?: SplitTransformOptions): PropertyDecorator;