3 ms·const foo: string[] = ['foo'] // inferred as string // though it is undefined const bar = foo[1]by kcrwfrd_ 2y agoconst foo: string[] = ['foo'] // inferred as string // though it is undefined const bar = foo[1]