Skip to content

Commit b50cdb8

Browse files
Update RecordService import (#87)
* Update RecordService import * bump: pkg * revert: dep * chore: update snapshots
1 parent e6f4246 commit b50cdb8

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var EXPORT_COMMENT = `/**
6060
* This file was @generated using pocketbase-typegen
6161
*/`;
6262
var IMPORTS = `import type PocketBase from 'pocketbase'
63-
import { type RecordService } from 'pocketbase'`;
63+
import type { RecordService } from 'pocketbase'`;
6464
var RECORD_TYPE_COMMENT = `// Record types for each collection`;
6565
var RESPONSE_TYPE_COMMENT = `// Response types include system fields and match responses from the PocketBase API`;
6666
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) {
319319
import { program } from "commander";
320320

321321
// package.json
322-
var version = "1.2.0";
322+
var version = "1.2.1";
323323

324324
// src/index.ts
325325
program.name("Pocketbase Typegen").version(version).description(

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pocketbase-typegen",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Generate pocketbase record types from your database",
55
"main": "dist/index.js",
66
"bin": {

src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const EXPORT_COMMENT = `/**
22
* This file was @generated using pocketbase-typegen
33
*/`
44
export const IMPORTS = `import type PocketBase from 'pocketbase'
5-
import { type RecordService } from 'pocketbase'`
5+
import type { RecordService } from 'pocketbase'`
66
export const RECORD_TYPE_COMMENT = `// Record types for each collection`
77
export const RESPONSE_TYPE_COMMENT = `// Response types include system fields and match responses from the PocketBase API`
88
export const ALL_RECORD_RESPONSE_COMMENT = `// Types containing all Records and Responses, useful for creating typing helper functions`

test/__snapshots__/fromJSON.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`creates a type file from json schema 1`] = `
66
*/
77
88
import type PocketBase from 'pocketbase'
9-
import { type RecordService } from 'pocketbase'
9+
import type { RecordService } from 'pocketbase'
1010
1111
export enum Collections {
1212
Base = "base",

test/__snapshots__/lib.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports[`generate generates correct output given db input 1`] = `
2626
*/
2727
2828
import type PocketBase from 'pocketbase'
29-
import { type RecordService } from 'pocketbase'
29+
import type { RecordService } from 'pocketbase'
3030
3131
export enum Collections {
3232
Books = "books",

test/pocketbase-types-example.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import type PocketBase from 'pocketbase'
6-
import { type RecordService } from 'pocketbase'
6+
import type { RecordService } from 'pocketbase'
77

88
export enum Collections {
99
Base = "base",

0 commit comments

Comments
 (0)