Adds type refinement for dynamic model selection

Introduces ModelId type alias to clarify model ID intent
Refines prompt generator type to support specific prompt types
Improves type safety for model and prompt configuration
This commit is contained in:
AlexKucera committed 2025-10-24 11:25:36 +02:00
1 parent 435af4ccab
commit 7932663d2a
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -1,9 +1,12 @@
// ABOUTME: Type definitions for the Freewriting Prompts plugin
// ABOUTME: Defines interfaces for settings, API responses, and plugin configuration
// Type alias to document intent that this should be a Claude model ID
export type ModelId = string;
export interface FreewritingPromptsSettings {
apiKey: string;
model: string; // Changed from AnthropicModel to string to support dynamic models
model: ModelId; // Changed from AnthropicModel to string to support dynamic models
timedCount: number;
delaySeconds: number;
noteCount: number;