next-sitemap
Version:
Sitemap generator for next.js
15 lines (14 loc) • 303 B
TypeScript
/**
* Load file
* @param path
* @param throwError
* @returns
*/
export declare const loadJSON: <T>(path: string) => Promise<T | undefined>;
/**
* Export file
* @param filePath
* @param content
* @returns
*/
export declare const exportFile: (filePath: string, content: string) => Promise<any>;