tiny-server-essentials
Version:
A good utility toolkit to unify Express v5 and Socket.IO v4 into a seamless development experience with modular helpers, server wrappers, and WebSocket tools.
35 lines • 824 B
text/typescript
/**
* Clears a cached HTML file.
*
* @param {string} filePath
* @returns {boolean}
*/
export function clearHtmlFileCache(filePath: string): boolean;
/**
* Checks if a file is cached.
*
* @param {string} filePath
* @returns {boolean}
*/
export function hasHtmlFileCache(filePath: string): boolean;
/**
* Loads an HTML file asynchronously and caches it.
*
* @param {string} filePath
* @returns {Promise<string>}
*/
export function getHtmlFile(filePath: string): Promise<string>;
/**
* Loads an HTML file synchronously and caches it.
*
* @param {string} filePath
* @returns {string}
*/
export function getHtmlFileSync(filePath: string): string;
/**
* Gets the list of cached file paths.
*
* @returns {string[]}
*/
export function getHtmlFileCacheKeys(): string[];
//# sourceMappingURL=TinyHtml.d.mts.map