@content-collections/core 0.9.0 → 0.9.1
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.
- package/dist/index.d.ts +4 -1
- package/package.json +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,10 @@ type GetOutput<TParser extends ConfiguredParser, TShape extends TSchemaProp, TOu
|
|
|
91
91
|
type Schema<TParser extends ConfiguredParser, TShape extends TSchemaProp> = GetOutput<TParser, TShape> & {
|
|
92
92
|
_meta: Meta;
|
|
93
93
|
};
|
|
94
|
-
type
|
|
94
|
+
type Prettify<T> = {
|
|
95
|
+
[K in keyof T]: T[K];
|
|
96
|
+
} & {};
|
|
97
|
+
type GetSchema<TCollection extends AnyCollection> = TCollection extends Collection<any, any, any, infer TSchema, any, any> ? Prettify<TSchema> : never;
|
|
95
98
|
type Context<TSchema = unknown> = {
|
|
96
99
|
documents<TCollection extends AnyCollection>(collection: TCollection): Array<GetSchema<TCollection>>;
|
|
97
100
|
cache: CacheFn;
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@content-collections/core",
|
|
3
|
-
"version": "0.9.0",
|
|
4
3
|
"type": "module",
|
|
4
|
+
"version": "0.9.1",
|
|
5
|
+
"description": "Core of Content Collections",
|
|
6
|
+
"author": "Sebastian Sdorra <s.sdorra@gmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://content-collections.dev",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/sdorra/content-collections.git",
|
|
12
|
+
"directory": "packages/core"
|
|
13
|
+
},
|
|
14
|
+
"bugs": "https://github.com/sdorra/content-collections/issues",
|
|
5
15
|
"main": "dist/index.js",
|
|
6
16
|
"types": "./dist/index.d.ts",
|
|
7
17
|
"exports": {
|