unconventional 1.0.4 → 1.1.0
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.
|
@@ -15,7 +15,7 @@ export declare class BaseModel extends Document {
|
|
|
15
15
|
static keyField?: string;
|
|
16
16
|
static ownerField?: string;
|
|
17
17
|
static db: DB;
|
|
18
|
-
id: number;
|
|
18
|
+
id: number | string;
|
|
19
19
|
static create<T extends typeof BaseModel>(this: T, data: Partial<InstanceType<T>>, upsertConfig?: UpsertConfig<T>): Promise<InstanceType<T> | null>;
|
|
20
20
|
static createMany<T extends typeof BaseModel>(this: T, data: Partial<InstanceType<T>>[], upsertConfig?: UpsertConfig<T>): Promise<InstanceType<T>[] | null>;
|
|
21
21
|
static findById<T extends typeof BaseModel>(this: T, id: string | number, config?: FilterConfig): Promise<InstanceType<T> | null>;
|
package/dist/core/base.model.js
CHANGED
|
@@ -180,7 +180,7 @@ class BaseModel extends Document {
|
|
|
180
180
|
exports.BaseModel = BaseModel;
|
|
181
181
|
__decorate([
|
|
182
182
|
(0, prop_decorator_1.prop)({ required: true, unique: true }),
|
|
183
|
-
__metadata("design:type",
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
184
|
], BaseModel.prototype, "id", void 0);
|
|
185
185
|
let TimeStamped = class TimeStamped extends BaseModel {
|
|
186
186
|
createdAt;
|