Home > front end >  TypeScript grammar question
TypeScript grammar question

Time:10-10

 let unexpectedKeyCache: {[key: string] : true} 
with my limited knowledge of TS, known to understand the meaning of this code is:
Declare a variable unexpectedKeyCache, its type is a structure; This structure has a member, the member name is the value of the key members of the value is true,
The problem here:
1. The above my understanding is correct?
2. If I understand correctly, what is the initial value of the variable unexpectedKeyCache? Why is the initial value?
Thanked the great god answer first,

CodePudding user response:

Is there a big help to look at, this code is in the story,
  • Related