swc/tests/fixture/issue-1457/case1/output/index.ts
강동윤 dbec753ca1
fix(swc): Fix bugs (#1591)
swc_ecma_parser:
 - Support optional async class methods. (#1454)

swc_ecma_transforms_compat:
 - Hoist import statements. (#1457)
2021-04-21 09:26:07 +09:00

17 lines
431 B
TypeScript

import { setGlobalOptions } from '@typegoose/typegoose';
import * as typegoose from '@typegoose/typegoose';
import { schemas } from './schemas';
// typegoose.mongoose.set('debug', true);
setGlobalOptions({
options: {
allowMixed: typegoose.Severity.ALLOW
},
schemaOptions: {
timestamps: {
createdAt: 'created_at',
updatedAt: 'updated_at'
}
}
});
console.log(schemas);