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'
import {
Todo,
MutationAddTodoArgs,
MutationUpdateTodoArgs,
MutationDeleteTodoArgs,
} from "../types";
export type TestCollection = {
fields: { deleteTodo: { arguments: MutationDeleteTodoArgs; response: Id }[] };
};
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 }[] };