v1.50.0
This version introduces an automated generation of typescript definitions for the preferences and arguments of your extension's commands.
After updating the API version, you will notice a new file at the root of the extension folder called raycast-env.d.ts
.
You shouldn't add this file to git so you have to update your
.gitignore
file:You have to tell TypeScript to pick up this file to get access to its type definitions. To do so, update the
tsconfig.json
file:You can now update your code to leverage the automated types:
Last updated