Flowtype array of object type does not allow extra properties
问题 I am having a strange error with flow. I'm simply trying to have a function that accepts an array of objects with an amount property but I'm having errors when providing objects with more properties. const sum = (items: Array<{amount: number}>) => {/* something */} type Item = { amount: number, name: string }; const list: Array<Item> = []; sum(list); This gives me the following errors: 10: const list: Array<Item> = []; ^ property `name`. Property not found in 2: const sum = (items: Array<