mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
1.1 KiB
1.1 KiB
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