@deessejs/collections 0.0.26 → 0.0.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,4 +1,44 @@
1
1
  import { Field } from "../fields";
2
2
  import { Collection } from "./types";
3
- export declare const collection: <const Slug extends string, const Fields extends Record<string, any>>(config: Collection<Slug, Fields>) => Collection<Slug, Fields>;
3
+ export declare const collection: <const Slug extends string, const Fields extends Record<string, Field>>(config: Collection<Slug, Fields>) => Collection<Slug, Fields & {
4
+ readonly id: import("../fields").FieldChain<{
5
+ kind: string;
6
+ params: unknown;
7
+ dsl: {
8
+ kind: string;
9
+ isPrimary: boolean;
10
+ isUnique: boolean;
11
+ canBeNull: boolean;
12
+ };
13
+ admin: {
14
+ component: any;
15
+ };
16
+ }>;
17
+ readonly createdAt: import("../fields").FieldChain<{
18
+ kind: string;
19
+ params: unknown;
20
+ dsl: {
21
+ kind: string;
22
+ isPrimary: boolean;
23
+ isUnique: boolean;
24
+ canBeNull: boolean;
25
+ };
26
+ admin: {
27
+ component: any;
28
+ };
29
+ }>;
30
+ readonly updatedAt: import("../fields").FieldChain<{
31
+ kind: string;
32
+ params: unknown;
33
+ dsl: {
34
+ kind: string;
35
+ isPrimary: boolean;
36
+ isUnique: boolean;
37
+ canBeNull: boolean;
38
+ };
39
+ admin: {
40
+ component: any;
41
+ };
42
+ }>;
43
+ }>;
4
44
  export declare const extendFields: <const Slug extends string, const Fields extends Record<string, Field>, const NewFields extends Record<string, Field>>(base: Collection<Slug, Fields>, newFields: NewFields) => Collection<Slug, Fields & NewFields>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deessejs/collections",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",