You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Produces an error when type checking (and therefore when running deno compile):
error: TS2345 [ERROR]: Argument of type '{ routes: { "./routes/_app.tsx": typeof $0; "./routes/breaking-the-box.tsx": typeof $1; "./routes/css-whitespace-parsing/[seed]/[count].tsx": typeof $2; "./routes/css-whitespace-parsing/[seed]/[count]/css.tsx": typeof $3; "./routes/css-whitespace-parsing/[seed]/[count]/document.tsx": typeof $4; "./routes/health.tsx"...' is not assignable to parameter of type 'Manifest'.
Types of property 'routes' are incompatible.
Type '{ "./routes/_app.tsx": typeof $0; "./routes/breaking-the-box.tsx": typeof $1; "./routes/css-whitespace-parsing/[seed]/[count].tsx": typeof $2; "./routes/css-whitespace-parsing/[seed]/[count]/css.tsx": typeof $3; "./routes/css-whitespace-parsing/[seed]/[count]/document.tsx": typeof $4; "./routes/health.tsx": typeof $...' is not assignable to type 'Record<string, RouteModule | MiddlewareModule<any> | AppModule | ErrorPageModule | UnknownPageModule>'.
Property '"./routes/breaking-the-box.tsx"' is incompatible with index signature.
Type 'typeof import("file:///D:/Media/My/www/lab/routes/breaking-the-box.tsx")' is not assignable to type 'RouteModule | MiddlewareModule<any> | AppModule | ErrorPageModule | UnknownPageModule'.
Type 'typeof import("file:///D:/Media/My/www/lab/routes/breaking-the-box.tsx")' is not assignable to type 'UnknownPageModule'.
Types of property 'default' are incompatible.
Type '(props: PageProps<any>) => Response | Element' is not assignable to type 'ComponentType<UnknownPageProps> | undefined'.
Type '(props: PageProps<any>) => Response | Element' is not assignable to type 'FunctionComponent<UnknownPageProps>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RenderableProps<UnknownPageProps, any>' is missing the following properties from type 'PageProps<any>': params, data
await start(manifest, { plugins: [twindPlugin(twindConfig)], port: port ?? 8000 });
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This route:
Produces an error when type checking (and therefore when running
deno compile
):Am I typing the function incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions