3 ms·
TypeScript will use flow typing to determine the type as number[] in this code: const x = [] x.push(1) type t = typeof x // number[]
by jitl 10mo 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[]