Skip to main content
Latest
type alias ValueFromArray
import { type ValueFromArray } from "https://deno.land/x/rxjs@v1.0.2/mod.ts";

Extracts the generic value from an Array type. If you have T extends Array<any>, and pass a string[] to it, ValueFromArray<T> will return the actual type of string.

Type Parameters

A extends readonly unknown[]
definition: A extends Array<infer T> ? T : never