TypeScriptSyntax
Record Type
Code example
Record<string, number>Types an object with set keys and values.
In TypeScript, record type: types an object with set keys and values — Record<string, number>
Record<string, number>Record<string, number>Types an object with set keys and values.
Use Record<string, number>.
Use this pattern: Record<string, number>
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.