mckaywrigley / mckays-app-template

Come join the best place on the internet to learn AI skills. Use code "mckaysapptemplate" for an extra 20% off.
https://JoinTakeoff.com/
MIT License
218 stars 53 forks source link

Question about prompts/instructions/backend-instructions.md #1

Open weppami opened 1 month ago

weppami commented 1 month ago

The instructions end with :

export type ActionState = {
  status: "success" | "error";
  message: string;
  data?: any;
};

Where should it be saved ? There is no indication Thanks

spattanaik01 commented 1 month ago

I think it should go below this line in setup-backend.md file,

"- Create a file called action-types.ts in the /types/actions folder for server action types with the following code:"

export type ActionState = {
  status: "success" | "error";
  message: string;
  data?: any;
};

-root->types->actions->action-types.ts already contains above defined ActionState