Answers for "typescript generic object not array"

0

typescript generic object not array

type NotArray<T> = T extends Array<unknown> ? never : T;

function f<T>(arg: NotArray<T>) {

}
Posted by: Guest on April-19-2022

Code answers related to "typescript generic object not array"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language