Skip to content

Commit 40bb4d0

Browse files
authored
Merge pull request #135 from Front-End-Coders-Mauritius/feature/auth-redirect
implement redirects after login on meetup page
2 parents 7d7db04 + db8527d commit 40bb4d0

File tree

12 files changed

+1241
-1425
lines changed

12 files changed

+1241
-1425
lines changed

.astro/types.d.ts

Lines changed: 0 additions & 49 deletions
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]

0 commit comments

Comments
 (0)