import { Transform, TransformFnParams } from 'class-transformer';

export const DefaultValue = (defaultValue: unknown) => {
    return Transform((target: TransformFnParams) => (target.value as unknown) ?? defaultValue);
};
