If the type T accepts type Primitive, output type true, otherwise output type false.
Primitive
type Primitive = string | number | boolean | bigint | symbol | null | undefined
如果类型 T 接受类型 Primitive,则输出 true,否则输出 false。
要检查的类型
If the type T accepts type
Primitive, output type true, otherwise output type false.type Primitive = string | number | boolean | bigint | symbol | null | undefined如果类型 T 接受类型
Primitive,则输出 true,否则输出 false。