Skip to content

Commit 5809da3

Browse files
authored
docs: fix missing description
1 parent 98cc340 commit 5809da3

File tree

2 files changed

+4
-53
lines changed

2 files changed

+4
-53
lines changed

packages/web/.astro/types.d.ts

+1-50
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ declare module 'astro:content' {
1919
}
2020

2121
declare module 'astro:content' {
22-
export { z } from 'astro/zod';
23-
2422
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
2523

2624
export type CollectionKey = keyof AnyEntryMap;
@@ -29,53 +27,6 @@ declare module 'astro:content' {
2927
export type ContentCollectionKey = keyof ContentEntryMap;
3028
export type DataCollectionKey = keyof DataEntryMap;
3129

32-
// This needs to be in sync with ImageMetadata
33-
export type ImageFunction = () => import('astro/zod').ZodObject<{
34-
src: import('astro/zod').ZodString;
35-
width: import('astro/zod').ZodNumber;
36-
height: import('astro/zod').ZodNumber;
37-
format: import('astro/zod').ZodUnion<
38-
[
39-
import('astro/zod').ZodLiteral<'png'>,
40-
import('astro/zod').ZodLiteral<'jpg'>,
41-
import('astro/zod').ZodLiteral<'jpeg'>,
42-
import('astro/zod').ZodLiteral<'tiff'>,
43-
import('astro/zod').ZodLiteral<'webp'>,
44-
import('astro/zod').ZodLiteral<'gif'>,
45-
import('astro/zod').ZodLiteral<'svg'>,
46-
import('astro/zod').ZodLiteral<'avif'>,
47-
]
48-
>;
49-
}>;
50-
51-
type BaseSchemaWithoutEffects =
52-
| import('astro/zod').AnyZodObject
53-
| import('astro/zod').ZodUnion<[BaseSchemaWithoutEffects, ...BaseSchemaWithoutEffects[]]>
54-
| import('astro/zod').ZodDiscriminatedUnion<string, import('astro/zod').AnyZodObject[]>
55-
| import('astro/zod').ZodIntersection<BaseSchemaWithoutEffects, BaseSchemaWithoutEffects>;
56-
57-
type BaseSchema =
58-
| BaseSchemaWithoutEffects
59-
| import('astro/zod').ZodEffects<BaseSchemaWithoutEffects>;
60-
61-
export type SchemaContext = { image: ImageFunction };
62-
63-
type DataCollectionConfig<S extends BaseSchema> = {
64-
type: 'data';
65-
schema?: S | ((context: SchemaContext) => S);
66-
};
67-
68-
type ContentCollectionConfig<S extends BaseSchema> = {
69-
type?: 'content';
70-
schema?: S | ((context: SchemaContext) => S);
71-
};
72-
73-
type CollectionConfig<S> = ContentCollectionConfig<S> | DataCollectionConfig<S>;
74-
75-
export function defineCollection<S extends BaseSchema>(
76-
input: CollectionConfig<S>
77-
): CollectionConfig<S>;
78-
7930
type AllValuesOf<T> = T extends any ? T[keyof T] : never;
8031
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
8132
ContentEntryMap[C]
@@ -685,5 +636,5 @@ declare module 'astro:content' {
685636

686637
type AnyEntryMap = ContentEntryMap & DataEntryMap;
687638

688-
type ContentConfig = typeof import("../src/content/config");
639+
export type ContentConfig = typeof import("../src/content/config.js");
689640
}

packages/web/src/content/docs/api/token.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This method refreshes the `Bearer token` used for API calls to TheTVDB API.
66

77
## Parameters
88

9-
| Params | Type | Required | Description |
10-
| ------ | -------- | :------: | -------------------------- |
11-
| token | `string` | Yes | The new `token` for making |
9+
| Params | Type | Required | Description |
10+
| ------ | -------- | :------: | ------------------------------------ |
11+
| token | `string` | Yes | The new `token` for making API calls |
1212

1313
## Example
1414

0 commit comments

Comments
 (0)