Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @flow
- type DynamicStructure = {
- [string]: number
- }
- const key: string = "someKey"
- const someStructure: DynamicStructure = {
- [key]: "invalid, should be a number"
- }
- // @flow
- type DynamicStructure = {
- [string]: number
- }
- const someStructure: DynamicStructure = {
- "someKey": "invalid, should be a number"
- }
Add Comment
Please, Sign In to add comment