@powfix/core-js 0.13.25 → 0.13.27
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelAttributeColumnOptions, WhereOptions } from "sequelize";
|
|
2
|
-
interface UuidColumnOptions extends Omit<ModelAttributeColumnOptions, 'type'> {
|
|
3
|
-
columnName: string
|
|
2
|
+
interface UuidColumnOptions<Model> extends Omit<ModelAttributeColumnOptions, 'type'> {
|
|
3
|
+
columnName: Model extends undefined ? string : UuidKeys<Model>;
|
|
4
4
|
}
|
|
5
5
|
type GetIncludeKeyPatterns<Model> = Model extends {
|
|
6
6
|
_id: string;
|
|
@@ -32,7 +32,7 @@ export declare class SequelizeUtils {
|
|
|
32
32
|
columnName: Model extends undefined ? string : (UuidKeys<Model> | AdditionalKeys);
|
|
33
33
|
allowNull: boolean;
|
|
34
34
|
}) => Partial<ModelAttributeColumnOptions>;
|
|
35
|
-
static getUuidColumn: ({ columnName, ...overrideOptions }: UuidColumnOptions) => Partial<ModelAttributeColumnOptions>;
|
|
35
|
+
static getUuidColumn: <Model = undefined>({ columnName, ...overrideOptions }: UuidColumnOptions<Model>) => Partial<ModelAttributeColumnOptions>;
|
|
36
36
|
static getNullableArrayFilter<T = undefined>(arr: (null | any)[]): WhereOptions<T>;
|
|
37
37
|
}
|
|
38
38
|
export {};
|