/** * 将 DTO 类型函数转换为可选版本 * 返回 T | undefined,在 dto.Object() dto.Array() 中会被识别为可选字段 */ export declare function toOptional any>(dtoFunc: T): ReplaceReturnType | undefined>; /** * 将 DTO 类型函数转换为可空版本 * 返回 T | null,在 dto.Object() dto.Array() 中会被识别为可选字段 */ export declare function toNullable any>(dtoFunc: T): ReplaceReturnType | null>; type ReplaceReturnType any, TNewReturn> = (...a: Parameters) => TNewReturn; export {}; //# sourceMappingURL=type-optional.d.ts.map