mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
46c3d62ebd
spack: - Ensure that #1533 is fixed. (#1533) swc_ecma_parser: - Support `async override` in classes. (#1558) swc_ecma_transforms_compat: - `async_to_generator`: Preserve this in async object methods. (#1575) - `nullish_coaelscing`: Fix assignments. (#1570) - `export_namespace_from`: Preserve order of statements. (#1457) swc: - Disable aes. (#1583)
23 lines
510 B
TypeScript
23 lines
510 B
TypeScript
import {
|
|
setGlobalOptions,
|
|
plugin,
|
|
buildSchema,
|
|
addModelToTypegoose,
|
|
deleteModel,
|
|
} from '@typegoose/typegoose';
|
|
import * as typegoose from '@typegoose/typegoose';
|
|
// typegoose.mongoose.set('debug', true);
|
|
setGlobalOptions({
|
|
options: {
|
|
allowMixed: typegoose.Severity.ALLOW,
|
|
},
|
|
schemaOptions: {
|
|
timestamps: {
|
|
createdAt: 'created_at',
|
|
updatedAt: 'updated_at',
|
|
},
|
|
},
|
|
});
|
|
import { schemas } from './schemas';
|
|
|
|
console.log(schemas) |