microsoft / microsoft/TypeScript

Flow type helpers

Open
#2,710 11 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Proposal Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Flow offer some nice type helpers in his recent versions, while some of them are already addressed by typescript, some could perhaps be helpful.
Here are extracted comments from flow source just for inspiration.

  • $Either<...T> is the union of types ...T
  • $All<...T> is the intersection of types ...T
  • $Supertype acts as any over supertypes of T
  • $Subtype acts as any over subtypes of T
  • $Shape matches the shape of T
  • $Diff<T,S>
  • $Enum is the set of keys of T
  • $Record is the type of objects whose keys are those of T

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by comparing the listed Flow helpers with TypeScript's existing type-system features and the issue discussion; done requires an agreed helper scope, specified behavior, and corresponding implementation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.