Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript keyof in java 8

interface User {
  id: number;
  userName: string;
  firstName: string;
  lastName: string;
}

type UserProp = keyof User; // "id" | "userName" | "firstName" | "lastName"
Source by blog.logrocket.com #
 
PREVIOUS NEXT
Tagged: #typescript #keyof #java
ADD COMMENT
Topic
Name
4+9 =