TS2339: Property does not exist on type {}
问题 Please help me fix this compilation error. Below you can see the compiler complaining that the Actions object on line 20 (I removed a few lines for clarity before posting this) is {}: But below you can see in actions.ts that Actions is an object of type Actions , and it has the requested property (which is a function): And in the base code you can see in the DefinitelyTyped Alt definition that createActions should return an object of type Actions : So why is Typescript complaining that