Skip to content
New issue

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

Example application with authorisation, forms etc #5

Open
marcin-piela opened this issue Apr 1, 2019 · 4 comments
Open

Example application with authorisation, forms etc #5

marcin-piela opened this issue Apr 1, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@marcin-piela
Copy link
Owner

Create CodeSandbox application with:

  • authorisation
  • forms (CRUD)
  • lists
    It should show all features or library.
@marcin-piela marcin-piela added the enhancement New feature or request label Apr 1, 2019
@marcin-piela marcin-piela added this to the 1.1 milestone Apr 1, 2019
@marcin-piela marcin-piela self-assigned this Apr 1, 2019
@marcin-piela marcin-piela modified the milestones: 1.1, 1.2 Apr 10, 2019
@ptcampbell
Copy link

Would love to see this! 😎

@marcin-piela marcin-piela removed this from the 1.6 milestone Jan 24, 2020
@mangz007
Copy link

mangz007 commented Dec 3, 2020

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

@marcin-piela-sf
Copy link

export const PostRegistrationAction:(data : UserRegister) => Action = (data) => ( {
body: data,
method : 'POST',
endpoint : 'register',
});

@mangz007
Copy link

mangz007 commented Dec 3, 2020

Thanks @marcin-piela that was very quick. It worked. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants