0.0.4 • Published 4 months ago

mthdctr-test v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Typed-Raycast

Usage

npx raygents -o ./raycast.ts

Then you can import the generated types in your project:

import { creatAPI } from './raycast.ts';

const api = createAPI();

CLI Options

Generated Types Usage

The generated type file will export a createAPI function that returns an object with all the commands and their arguments. You can use this to create a command line interface for Raycast in any language.

Motivation

I love Raycast, it's become an integral part of my daily workflow since I began using it around 2 years ago. When they added deep links, you now have the ability to hook into Raycast from any other program.

I personally use this package in tandem with Karabiner using the wonderful karabiner-ts library, but you can use the types generated from this package in any Typescript project, for example:

  • Obsidian extensions
  • Chrome extensions
  • VSCode extensions

Credit

  • I used aishell as a guideline to create this project