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

SetIntersection

SetIntersection (same as Extract)

@example
// Expect: "2" | "3"
  SetIntersection<'1' | '2' | '3', '2' | '3' | '4'>;

  // Expect: () => void
  SetIntersection<string | number | (() => void), Function>;
type SetIntersection<A, B> = A extends B ? A : never;

§Type Parameters

§Type

§
A extends B ? A : never
[src]