Commit adc3c697 authored by nanahira's avatar nanahira

optimize

parent 368f4ff1
Pipeline #6287 passed with stages
in 43 seconds
{ {
"name": "koishi-utils-schemagen", "name": "koishi-utils-schemagen",
"version": "1.1.0", "version": "1.1.1",
"description": "在 Koishi.js 中,使用类装饰器定义 Schema", "description": "在 Koishi.js 中,使用类装饰器定义 Schema",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
......
import { Schema } from 'koishi'; import { Schema } from 'koishi';
import { import { ClassConstructor, plainToClass } from 'class-transformer';
ClassConstructor,
plainToClass,
TransformOptions,
} from 'class-transformer';
import { SchemaClassOptions, SchemaOptions, SchemaOptionsDict } from './def'; import { SchemaClassOptions, SchemaOptions, SchemaOptionsDict } from './def';
import 'reflect-metadata'; import 'reflect-metadata';
import { SchemaClassKey, SchemaKeysMetaKey, SchemaMetaKey } from './constants'; import { SchemaClassKey, SchemaKeysMetaKey, SchemaMetaKey } from './constants';
......
import { import { DefineSchema, SchemaConf, schemaFromClass, schemaTransform } from '..';
DefineSchema,
SchemaConf,
schemaFromClass,
schemaTransform,
} from '..';
import { Schema } from 'koishi'; import { Schema } from 'koishi';
@SchemaConf({ @SchemaConf({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment