sindresorhus / alfy

Create Alfred workflows with ease
MIT License
2.63k stars 104 forks source link

Type for "mods" requires all properties to be defined #147

Closed rchl closed 2 years ago

rchl commented 2 years ago

This type:

https://github.com/sindresorhus/alfy/blob/2e08f6d7d7142b5bf408ac6b6eb54eadcea9d217/index.d.ts#L235

is wrong since it doesn't allow specifying just some of the key modifier handlers. All need to be specified with that type.

Screenshot 2021-12-09 at 22 11 04

Error: Type '{ shift: { subtitle: string; }; }' is missing the following properties from type 'Record<PossibleModifiers, ModifierKeyItem>': fn, ctrl, opt, cmd