@translated/lara
Version:
Official Lara SDK for JavaScript and Node.js
30 lines (29 loc) • 810 B
TypeScript
export interface Memory {
readonly id: string;
readonly createdAt: Date;
readonly updatedAt: Date;
readonly sharedAt: Date;
readonly name: string;
readonly externalId?: string;
readonly secret?: string;
readonly ownerId: string;
readonly collaboratorsCount: number;
}
export interface MemoryImport {
readonly id: string;
readonly begin: number;
readonly end: number;
readonly channel: number;
readonly size: number;
readonly progress: number;
}
export interface TextBlock {
readonly text: string;
readonly translatable?: boolean;
}
export interface TextResult<T extends string | string[] | TextBlock[]> {
readonly contentType: string;
readonly sourceLanguage: string;
readonly translation: T;
readonly adaptedTo?: string[];
}