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

Type support checklist ✅ #149

Open
danieldelcore opened this issue Jan 14, 2021 · 0 comments
Open

Type support checklist ✅ #149

danieldelcore opened this issue Jan 14, 2021 · 0 comments

Comments

@danieldelcore
Copy link
Contributor

danieldelcore commented Jan 14, 2021

The way ERT evaluates complex types and language specific features is largely a manual process. We have to manually tell ERT how to interpret things like extends and React.FC<P>, so inevitably there will be things that we don't support or haven't considered.

This issue aims to track what features we do and don't support and in cases where a feature is unsupported, we hope to provide a suitable bail-out, similar to what is suggested here #141

If there's something missing on this list, please leave a comment below 😄

TypeScript

  • primitive types boolean, array, string, number
  • any
  • unknown
  • void
  • functions ✅
  • array[] & Array<>
  • interfaces ✅
  • types type foo = string
  • union types 'foo' | 'bar'
  • intersection types Foo & Bar
  • extends ✅
  • keyof ❌
  • as ❌
  • template literal types
  • index signatures
  • conditional types

TypeScript utility types

  • Omit<>
  • Partial<>
  • Record<>
  • Pick<>
  • ReturnType<>

TypeScript via @types/react

  • React.FC<Props>
  • React.memo<Props>
  • React.forwardRef<ElementType, Props>

Flow

TBD

Related issues

#59
#141

@danieldelcore danieldelcore pinned this issue Jan 14, 2021
@danieldelcore danieldelcore self-assigned this Jan 14, 2021
@danieldelcore danieldelcore changed the title Syntax support checklist Syntax support checklist ✅ Jan 14, 2021
@danieldelcore danieldelcore changed the title Syntax support checklist ✅ Type/Syntax support checklist ✅ Jan 14, 2021
@danieldelcore danieldelcore changed the title Type/Syntax support checklist ✅ Type support checklist ✅ Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant