Guest User

Untitled

a guest
Mar 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // @flow
  2.  
  3. type DynamicStructure = {
  4. [string]: number
  5. }
  6.  
  7. const key: string = "someKey"
  8. const someStructure: DynamicStructure = {
  9. [key]: "invalid, should be a number"
  10. }
  11.  
  12. // @flow
  13.  
  14. type DynamicStructure = {
  15. [string]: number
  16. }
  17.  
  18. const someStructure: DynamicStructure = {
  19. "someKey": "invalid, should be a number"
  20. }
Add Comment
Please, Sign In to add comment