Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Spread

import type { Spread } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/kind.ts";

Spread the keys of a struct union into a single struct.

type Spread<A> = [K in keyof A]: A[K] extends infer B ? B : never;

§Type Parameters

§Type

§
[K in keyof A]: A[K] extends infer B ? B : never
[src]