The Wayback Machine - https://web.archive.org/web/20200617133311/https://github.com/paularmstrong/normalizr/issues/442
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

doc: TS types for schema should represent relationships as id type #442

Open
wuweiweiwu opened this issue Apr 24, 2020 · 0 comments
Open

doc: TS types for schema should represent relationships as id type #442

wuweiweiwu opened this issue Apr 24, 2020 · 0 comments

Comments

@wuweiweiwu
Copy link

@wuweiweiwu wuweiweiwu commented Apr 24, 2020

Problem

Here are the types for a ts test https://github.com/paularmstrong/normalizr/blob/master/typescript-tests/entity.ts#L11

Since in the normalized entities all relationships are all id type this should be string instead of User

{
  ...
  user: string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.