lecoffre-back-mini/global.d.ts
2025-09-07 15:30:32 +02:00

40 lines
935 B
TypeScript

// Global type declarations for packages without @types
declare module 'ovh' {
interface OVHConfig {
appKey: string;
appSecret: string;
consumerKey: string;
}
interface OVHClient {
request(method: string, path: string, params: any, callback: (error: any, result: any) => void): void;
}
function ovh(config: OVHConfig): OVHClient;
export = ovh;
}
declare module '@mailchimp/mailchimp_transactional' {
interface MailchimpMessage {
template_name: string;
template_content: any[];
message: {
global_merge_vars: Array<{ name: string; content: string }>;
from_email: string;
from_name: string;
subject: string;
to: Array<{ email: string; type: string }>;
};
}
interface MailchimpClient {
messages: {
sendTemplate(message: MailchimpMessage): Promise<any>;
};
}
function mailchimp(apiKey: string): MailchimpClient;
export = mailchimp;
}