Update RecordService import (#87)

* Update RecordService import

* bump: pkg

* revert: dep

* chore: update snapshots
This commit is contained in:
Fernando Nogueira
2023-10-30 00:52:05 -04:00
committed by GitHub
parent e6f4246717
commit b50cdb8413
6 changed files with 7 additions and 7 deletions

4
dist/index.js vendored
View File

@@ -60,7 +60,7 @@ var EXPORT_COMMENT = `/**
* This file was @generated using pocketbase-typegen
*/`;
var IMPORTS = `import type PocketBase from 'pocketbase'
import { type RecordService } from 'pocketbase'`;
import type { RecordService } from 'pocketbase'`;
var RECORD_TYPE_COMMENT = `// Record types for each collection`;
var RESPONSE_TYPE_COMMENT = `// Response types include system fields and match responses from the PocketBase API`;
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) {
import { program } from "commander";
// package.json
var version = "1.2.0";
var version = "1.2.1";
// src/index.ts
program.name("Pocketbase Typegen").version(version).description(

View File

@@ -1,6 +1,6 @@
{
"name": "pocketbase-typegen",
"version": "1.2.0",
"version": "1.2.1",
"description": "Generate pocketbase record types from your database",
"main": "dist/index.js",
"bin": {

View File

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

View File

@@ -6,7 +6,7 @@ exports[`creates a type file from json schema 1`] = `
*/
import type PocketBase from 'pocketbase'
import { type RecordService } from 'pocketbase'
import type { RecordService } from 'pocketbase'
export enum Collections {
Base = "base",

View File

@@ -26,7 +26,7 @@ exports[`generate generates correct output given db input 1`] = `
*/
import type PocketBase from 'pocketbase'
import { type RecordService } from 'pocketbase'
import type { RecordService } from 'pocketbase'
export enum Collections {
Books = "books",

View File

@@ -3,7 +3,7 @@
*/
import type PocketBase from 'pocketbase'
import { type RecordService } from 'pocketbase'
import type { RecordService } from 'pocketbase'
export enum Collections {
Base = "base",