@deessejs/collections 0.0.24 → 0.0.25

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 { InferSchema } from "../fields/types";
2
2
  import { Config } from "./types";
3
- export declare const defineConfig: <const C extends Config>(config: C) => { [Col in C["collections"][number] as Col["slug"]]: {
3
+ export declare const defineConfig: <C extends Config>(config: Exact<C, Config>) => { [Col in C["collections"][number] as Col["slug"]]: {
4
4
  create: (data: InferSchema<Col["fields"]>) => Promise<any>;
5
5
  read: (id: string) => Promise<any>;
6
6
  update: (id: string, data: Partial<InferSchema<Col["fields"]>>) => Promise<any>;
@@ -0,0 +1 @@
1
+ type Exact<A, B> = A extends B ? Exclude<keyof A, keyof B> extends never ? A : never : never;
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deessejs/collections",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",