warframe-worldstate-data
Version:
Warframe data for use with warframe-worldstate-parser
10 lines • 410 B
text/typescript
//#region safeImport.d.ts
/**
* Safely require path, fall back to fallback if module cannot load
* @param {string} path Path to attempt to load
* @param {Object} fallback fallback response if error or no module
* @returns {Promise<any>} module or the default object
*/
declare const safeImport: <T extends object>(path: string, fallback?: T) => Promise<T>;
//#endregion
export { safeImport };