Typescript gives error when import schemas from different file. #9428
-
“I created a new project using the command The Error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In your So it will look like : Import |
Beta Was this translation helpful? Give feedback.
-
Yeah it is worked. Thanks @sam-gab |
Beta Was this translation helpful? Give feedback.
In your
User.ts
file, addsatisfies Lists.User
to the end.So it will look like :
export const User = list({ ..... } satisfies Lists.User
Import
Lists
fromimport { Lists } from ".keystone/types";