We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create CodeSandbox application with:
The text was updated successfully, but these errors were encountered:
Would love to see this! 😎
Sorry, something went wrong.
Hi there, I need a small help please Below is my code
export interface UserRegister { firstName : string; lastName : string; email : string; password : string; phone : string; } export const PostRegistrationAction : Action = (data : UserRegister) => ( { body: data, method : 'POST', endpoint : 'register', }); and I get the following error TypeScript error in C:/Users/mangz/Documents/kevin/src/api/actions/index.ts(12,14): Type '(data: UserRegister) => { body: UserRegister; method: string; endpoint: string; }' is missing the following properties from type 'Action<UserRegObject, any>': endpoint, method TS2739
I am new to typescript also kind of new to react. Please can you help me get past by this point.
Get requests have no issues, its just with post request. Thanks Mangesh
export const PostRegistrationAction:(data : UserRegister) => Action = (data) => ( { body: data, method : 'POST', endpoint : 'register', });
Thanks @marcin-piela that was very quick. It worked. Thanks a lot.
marcin-piela
No branches or pull requests
Create CodeSandbox application with:
It should show all features or library.
The text was updated successfully, but these errors were encountered: