@osaedasia/oresume
Version:
A user-friendly library for generating complete Single Page Applications (SPAs)
16 lines (15 loc) • 500 B
TypeScript
/**
* Defines the contract for objects that can represent themselves as HTML strings.
*/
export interface HTMLObject {
/**
* @returns {string} HTML string representation of the object.
*/
toHtml(): string;
}
/**
* Type guard to check if an object implements the HTMLObject interface.
* @param {any} obj The object to check.
* @returns {boolean} True if the object implements HTMLObject, false otherwise.
*/
export declare function isAnHTMLObject(obj: any): obj is HTMLObject;