Skip to content

Instantly share code, notes, and snippets.

View gonta's full-sized avatar
🐋
Start up at sengakuji

ryuta sakamoto gonta

🐋
Start up at sengakuji
View GitHub Profile
@gonta
gonta / file0.txt
Last active October 27, 2016 11:02
Typescriptで、Object[key]とすると出るIndex signature of object type implicitly has an 'any' type.を正しく回避する ref: http://qiita.com/gonta/items/fb7b9e6d0f12060c27d6
interface pokemon {
PIKACHU: boolean,
RAICHU: boolean,
YADORAN: boolean
\[key: string]: boolean
}
let key: string = 'PIKACHU';
let pikachu: string = pokemon[key];