swc/tests/fixture/issue-1457/case7-es2015/input/index.ts
강동윤 46c3d62ebd
fix(swc): Fix bugs (#1560)
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)
2021-04-17 06:00:14 +00:00

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)