Skip to content

Instantly share code, notes, and snippets.

@pixelkritzel pixelkritzel/wtf.ts
Created Jun 7, 2018

What would you like to do?
type IItem = {
key: number,
text: string
const items: IItem[] = [{key: 0, text: ''}]
// it says type never[] isn't assignable to type [{ text: string}]
for (let index = 1; index < 11; index++) {
key: index,
text: `No. ${index} Item`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.