Skip to content

Instantly share code, notes, and snippets.

@kyubuns
Last active March 28, 2020 08:41
Show Gist options
  • Save kyubuns/f33242dfd514b7113012aa538a958db2 to your computer and use it in GitHub Desktop.
Save kyubuns/f33242dfd514b7113012aa538a958db2 to your computer and use it in GitHub Desktop.
export interface Fuga {
id: string
}
let hoge = {}
hoge['id'] = 'a_text'
hoge['dummy'] = 'dummy_text'
let fuga = (<Fuga>hoge) // エラーになってくれーー頼むーー
console.log(hoge)
console.log(fuga)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment