File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { getConfig } from "../config" ;
22
33export function transformDateType ( ) {
4- return `import { type StringOptions, ${ getConfig ( ) . typeboxImportVariableName } } from "${ getConfig ( ) . typeboxImportDependencyName } ";
5- export const ${ getConfig ( ) . transformDateName } = (options?: StringOptions ) => ${
4+ return `import { ${ getConfig ( ) . typeboxImportVariableName } } from "${ getConfig ( ) . typeboxImportDependencyName } ";
5+ export const ${ getConfig ( ) . transformDateName } = (options?: Parameters<typeof ${ getConfig ( ) . typeboxImportVariableName } .String>[0] ) => ${
66 getConfig ( ) . typeboxImportVariableName
77 } .Transform(${ getConfig ( ) . typeboxImportVariableName } .String({ format: 'date-time', ...options }))
88 .Decode((value) => new Date(value))
You can’t perform that action at this time.
0 commit comments