UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

9 lines (8 loc) 369 B
import { CrowdinContextInfo, UiModule } from '../../types'; import Crowdin from '@crowdin/crowdin-api-client'; export interface AiPromptProviderModule extends UiModule { /** * generates prompt text based on provided options */ compile: (options: any, payload: any, client: Crowdin, context: CrowdinContextInfo, requestData: any) => Promise<string>; }