Skip to content

Type Extractors #175

Description

@baetheus

Almost every exported Kind and Type in fun could use an extraction type. The goal of this issue is:

  1. Decide on a cohesive naming design for the type level extractors.
  2. Implement type extractors for all exported types that can use it.

A type extractor looks like the following:

type MyArray<A> = readonly A[];

type ExtractMyArray<T> = T extends MyArray<infer A> ? A : never;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions