mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
| .. | ||
| .gitignore | ||
| .releaserc | ||
| index.d.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Roo Code Types
TypeScript type definitions for Roo Code.
Installation
npm install roo-code-types
or
yarn add roo-code-types
Usage
Import the types in your TypeScript files:
import {
RooCodeAPI,
RooCodeSettings,
GlobalSettings,
ProviderSettings,
ClineMessage,
TokenUsage,
RooCodeEventName,
RooCodeEvents,
} from "roo-code-types"
// Use the types in your code
const settings: RooCodeSettings = {
// Your settings here
}
// Example: Type an event handler
function handleMessage(event: RooCodeEvents["message"][0]) {
console.log(event.message.text)
}
Available Types
GlobalSettings: Global configuration settings for Roo CodeProviderSettings: Provider-specific settingsProviderSettingsEntry: Entry for a provider configurationClineMessage: Message structure for Cline interactionsTokenUsage: Structure for token usage informationRooCodeEvents: Event types for the Roo Code APIRooCodeEventName: Enum of event namesRooCodeSettings: Combined global and provider settingsRooCodeAPI: Interface for the Roo Code API
License
MIT