和 Exclude 相反,Extract 从 T 中提取出 U type T0 = Extract<"a" | "b" | "c", "a" | "f">; // "a"type T1 = Extract<string | number | (() => void), Function>; // () =>void