DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
typescript generic object not array
type NotArray<T> = T extends Array<unknown> ? never : T; function f<T>(arg: NotArray<T>) { }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#typescript
#generic
#object
#array
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit