File tree 6 files changed +7
-7
lines changed
6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ var EXPORT_COMMENT = `/**
60
60
* This file was @generated using pocketbase-typegen
61
61
*/` ;
62
62
var IMPORTS = `import type PocketBase from 'pocketbase'
63
- import { type RecordService } from 'pocketbase'` ;
63
+ import type { RecordService } from 'pocketbase'` ;
64
64
var RECORD_TYPE_COMMENT = `// Record types for each collection` ;
65
65
var RESPONSE_TYPE_COMMENT = `// Response types include system fields and match responses from the PocketBase API` ;
66
66
var ALL_RECORD_RESPONSE_COMMENT = `// Types containing all Records and Responses, useful for creating typing helper functions` ;
@@ -319,7 +319,7 @@ async function main(options2) {
319
319
import { program } from "commander" ;
320
320
321
321
// package.json
322
- var version = "1.2.0 " ;
322
+ var version = "1.2.1 " ;
323
323
324
324
// src/index.ts
325
325
program . name ( "Pocketbase Typegen" ) . version ( version ) . description (
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pocketbase-typegen" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " Generate pocketbase record types from your database" ,
5
5
"main" : " dist/index.js" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export const EXPORT_COMMENT = `/**
2
2
* This file was @generated using pocketbase-typegen
3
3
*/`
4
4
export const IMPORTS = `import type PocketBase from 'pocketbase'
5
- import { type RecordService } from 'pocketbase'`
5
+ import type { RecordService } from 'pocketbase'`
6
6
export const RECORD_TYPE_COMMENT = `// Record types for each collection`
7
7
export const RESPONSE_TYPE_COMMENT = `// Response types include system fields and match responses from the PocketBase API`
8
8
export const ALL_RECORD_RESPONSE_COMMENT = `// Types containing all Records and Responses, useful for creating typing helper functions`
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ exports[`creates a type file from json schema 1`] = `
6
6
*/
7
7
8
8
import type PocketBase from 'pocketbase'
9
- import { type RecordService } from 'pocketbase'
9
+ import type { RecordService } from 'pocketbase'
10
10
11
11
export enum Collections {
12
12
Base = " base" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ exports[`generate generates correct output given db input 1`] = `
26
26
*/
27
27
28
28
import type PocketBase from 'pocketbase'
29
- import { type RecordService } from 'pocketbase'
29
+ import type { RecordService } from 'pocketbase'
30
30
31
31
export enum Collections {
32
32
Books = " books" ,
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import type PocketBase from 'pocketbase'
6
- import { type RecordService } from 'pocketbase'
6
+ import type { RecordService } from 'pocketbase'
7
7
8
8
export enum Collections {
9
9
Base = "base" ,
You can’t perform that action at this time.
0 commit comments