mirror of
https://github.com/zhigang1992/pocketbase-typegen.git
synced 2026-04-30 13:12:09 +08:00
add IsoDateString type as an alias
This commit is contained in:
@@ -29,6 +29,8 @@ exports[`createRecordType handles file fields with multiple files 1`] = `
|
||||
exports[`generate generates correct output given db input 1`] = `
|
||||
"// This file was @generated using pocketbase-typegen
|
||||
|
||||
export type IsoDateString = string
|
||||
|
||||
export enum Collections {
|
||||
Books = "books",
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ describe("createTypeField", () => {
|
||||
name: "dateField",
|
||||
type: "date",
|
||||
})
|
||||
).toEqual("\tdateField: string\n")
|
||||
).toEqual("\tdateField: IsoDateString\n")
|
||||
expect(
|
||||
createTypeField({
|
||||
...defaultFieldSchema,
|
||||
|
||||
Reference in New Issue
Block a user