diff --git a/src/schema.ts b/src/schema.ts index d49d34d..dda3b70 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,7 +1,7 @@ import * as mongoose from 'mongoose'; +import { Int32 } from 'mongoose-int32'; const Schema = mongoose.Schema; -const Int32 = require('mongoose-int32'); const Sample = new Schema({ start: {type: Int32, default: new Int32(0)},