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
.
definition: A extends Array<infer T> ? T : never