logoalt Hacker News

jitllast Wednesday at 7:15 PM0 repliesview on HN

TypeScript will use flow typing to determine the type as number[] in this code:

    const x = []
    x.push(1)
    type t = typeof x // number[]