Y
Hacker News
new
|
ask
|
show
|
jobs
by
jitl
187 days ago
TypeScript will use flow typing to determine the type as number[] in this code:
const x = [] x.push(1) type t = typeof x // number[]