webhooks-simpleing
Version:
Simple webhooks for Slack and JANDI
14 lines (13 loc) • 392 B
TypeScript
export type Response = {
status?: number;
statusText?: string;
errorCode?: string;
};
export interface WebhooksSendMessage {
type: "jandi" | "slack";
urlType: string[];
title: string;
content: string;
callback?: (res: any) => {};
}
export declare const webhooksSendMessage: ({ type, urlType, title, content, callback, }: WebhooksSendMessage) => Promise<void>;