@riocrypto/common 1.0.380 → 1.0.381

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@ interface AuthDoc extends Document {
20
20
  interface AuthModel extends Model<AuthDoc> {
21
21
  build(attrs: AuthAttrs): AuthDoc;
22
22
  }
23
- declare const buildAuth: (mongoose: Mongoose) => Model<any, {}, {}, {}, any, any> | AuthModel;
23
+ declare const buildAuth: (mongoose: Mongoose) => AuthModel;
24
24
  export { buildAuth, AuthDoc };
@@ -14,7 +14,7 @@ const password_1 = require("../services/password");
14
14
  const buildAuth = (mongoose) => {
15
15
  // if model is already defined, return it
16
16
  if (mongoose.models.Auth) {
17
- return mongoose.models.Auth;
17
+ const x = mongoose.models.Auth;
18
18
  }
19
19
  const AuthSchema = new mongoose.Schema({
20
20
  phoneNumber: {
@@ -16,5 +16,5 @@ interface BankPayoutDoc extends Document {
16
16
  interface BankPayoutModel extends Model<BankPayoutDoc> {
17
17
  build(attrs: BankPayoutAttrs): BankPayoutDoc;
18
18
  }
19
- declare const buildBankPayout: (mongoose: Mongoose) => Model<any, {}, {}, {}, any, any> | BankPayoutModel;
19
+ declare const buildBankPayout: (mongoose: Mongoose) => BankPayoutModel;
20
20
  export { buildBankPayout, BankPayoutDoc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.380",
3
+ "version": "1.0.381",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",