Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript keyof type

type Arrayish = { [n: number]: unknown };
type A = keyof Arrayish;
    
type A = number
 
type Mapish = { [k: string]: boolean };
type M = keyof Mapish;
    
type M = string | number
Try
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript #keyof #type
ADD COMMENT
Topic
Name
7+9 =