@kikiutils/mongoose 0.1.0 → 0.1.1

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.
package/constants.d.ts CHANGED
@@ -59,14 +59,14 @@ export declare const commonMongooseSchemas: {
59
59
  readonly decimal128: {
60
60
  readonly autoRoundAndToFixed: {
61
61
  readonly nonRequired: {
62
- readonly set: (value: import("decimal.js").default.Value | {
62
+ readonly set: (value: string | number | {
63
63
  toString(): string;
64
64
  }) => string;
65
65
  readonly type: typeof import("mongoose").Schema.Types.Decimal128;
66
66
  };
67
67
  readonly required: {
68
68
  readonly required: true;
69
- readonly set: (value: import("decimal.js").default.Value | {
69
+ readonly set: (value: string | number | {
70
70
  toString(): string;
71
71
  }) => string;
72
72
  readonly type: typeof import("mongoose").Schema.Types.Decimal128;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kikiutils/mongoose",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "author": "kiki-kanri",
6
6
  "repository": {
package/utils.d.ts CHANGED
@@ -23,7 +23,6 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose-paginate-v2" />
26
- import Decimal from 'decimal.js';
27
26
  import { Schema } from 'mongoose';
28
27
  import type { Model as MongooseModel, PaginateModel } from 'mongoose';
29
28
  import type { BuildMongooseModelOptions } from './types/options';
@@ -67,14 +66,14 @@ export declare const createCommonMongooseSchemas: <T extends {}>(customSchemas?:
67
66
  readonly decimal128: {
68
67
  readonly autoRoundAndToFixed: {
69
68
  readonly nonRequired: {
70
- readonly set: (value: Decimal.Value | {
69
+ readonly set: (value: number | string | {
71
70
  toString(): string;
72
71
  }) => string;
73
72
  readonly type: typeof Schema.Types.Decimal128;
74
73
  };
75
74
  readonly required: {
76
75
  readonly required: true;
77
- readonly set: (value: Decimal.Value | {
76
+ readonly set: (value: number | string | {
78
77
  toString(): string;
79
78
  }) => string;
80
79
  readonly type: typeof Schema.Types.Decimal128;