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
I have just added a plain todoSchema, and initialize the project. Right after that run the build command npm run build, and the following type errors came. Property 'fields' of exported interface has or is using private name 'Id'
The file named testCollectionsTypes.ts contains the code:
import {
Todo,
MutationAddTodoArgs,
MutationUpdateTodoArgs,
MutationDeleteTodoArgs,
} from "../types";
export type TestCollection = {
fields: { deleteTodo: { arguments: MutationDeleteTodoArgs; response: Id }[] };
};
The errors in command line were
mock_lambda_layer/mockData/deleteTodo/testCollectionsTypes.ts:9:72 - error TS2304: Cannot find name 'Id'.
9 fields: { deleteTodo: { arguments: MutationDeleteTodoArgs; response: Id }[] };
~~
mock_lambda_layer/mockData/deleteTodo/testCollectionsTypes.ts:9:72 - error TS4033: Property 'fields' of exported interface has or is using private name 'Id'.
9 fields: { deleteTodo: { arguments: MutationDeleteTodoArgs; response: Id }[] };
The text was updated successfully, but these errors were encountered:
I have just added a plain todoSchema, and initialize the project. Right after that run the build command
npm run build
, and the following type errors came.Property 'fields' of exported interface has or is using private name 'Id'
The file named testCollectionsTypes.ts contains the code:
The errors in command line were
The text was updated successfully, but these errors were encountered: