Skip to content

Typescript gives error when import schemas from different file. #9428

Discussion options

You must be logged in to vote

In your User.ts file, add satisfies Lists.User to the end.

So it will look like :
export const User = list({ ..... } satisfies Lists.User

Import Lists from import { Lists } from ".keystone/types";

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yusufilker-mnm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9416 on December 10, 2024 11:17.