Look up types on the other hand are used to extract a portion from a complex type and create a new type
typerequestType={payload:{name:string,user:number,roles:{edit:boolean,create:boolean,read:boolean}},params:{id:number,type:string}}// if we want to use type of params as a type thentypeParams=requestType["params"]// {id: number,type: string }typeRoles=requestType["payload"]["roles"]// roles: {edit: boolean,create: boolean,read: boolean}
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)