Created
November 14, 2017 21:30
-
-
Save codegamc/0a72d5a272ade362c06429233fdb8866 to your computer and use it in GitHub Desktop.
Simple Typescript map-like object (typed)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let x: {[key: KeyType]: ValueType} = {} | |
x[key] = value; | |
let v: ValueType = x[key]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment