mirror of
https://github.com/zhigang1992/pocketbase-typegen.git
synced 2026-04-29 04:35:20 +08:00
Update RecordService import (#87)
* Update RecordService import * bump: pkg * revert: dep * chore: update snapshots
This commit is contained in:
committed by
GitHub
parent
e6f4246717
commit
b50cdb8413
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -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(
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import type PocketBase from 'pocketbase'
|
||||
import { type RecordService } from 'pocketbase'
|
||||
import type { RecordService } from 'pocketbase'
|
||||
|
||||
export enum Collections {
|
||||
Base = "base",
|
||||
|
||||
Reference in New Issue
Block a user