type person ={
name: string,
age: number,
gender: ('male'|'female'),
}
let man: person= {
name: 'bob',
age: 10,
gender: 'male',
}
let k1:string[] = Object.keys(man)
let s: string = k1[1]
console.log(man[s])// why mistake??????
console.log(typeof s)//string
Why i can not write 'man[s]' to get value and what i should do to get it? VS code wrote this error ' The element is implicitly of type "any" because an expression of type "string" cannot be registered in the Republic for indexing type "person". No index signature was found on type 'person' with type parameter 'string'.'