| 1 2 3 4 5 6 7 8 9 10 11 12 | 1x 3x 1x 2x 2x | import { IConfig } from "./types";
export const throwError = (config:IConfig)=>{
if(config === null){
throw new Error(`Your config cannot be empty`)
}
Eif(config.apiKey === null){
throw new Error(`Your apiKey cannot be empty`)
}
}
|