UNPKG

@uneiotech/elisa_whatsapp

Version:

Elisa WhatsApp is a library to stable a communication between channels and server.

12 lines (9 loc) 264 B
import { IConfig } from "./types"; export const throwError = (config:IConfig)=>{ if(config === null){ throw new Error(`Your config cannot be empty`) } if(config.apiKey === null){ throw new Error(`Your apiKey cannot be empty`) } }