@idb-orm/core 1.0.14 → 1.0.15

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.
@@ -19,7 +19,7 @@ export default class Model<Name extends string, F extends Record<string, ValidVa
19
19
  constructor(name: Name, fields: F);
20
20
  get<K extends Keyof<F>>(key: K): F[K];
21
21
  getPrimaryKey(): PrimaryKey<boolean, ValidKey>;
22
- defineKeyGen(genFn: (model: RelationlessModelStructure<this>) => GetPrimaryKeyType<F[Primary]>): this;
22
+ defineKeyGen(genFn: (model: Omit<RelationlessModelStructure<this>, Primary>) => GetPrimaryKeyType<F[Primary]>): this;
23
23
  getRelation<Models extends string>(key: string): BaseRelation<Models, string> | undefined;
24
24
  keyType(key: Keyof<F>): FieldTypes;
25
25
  links<Names extends string = string>(): SetIterator<Names>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idb-orm/core",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",