crmod-api
Version:
A dynamic mod/asset generator for Cosmic Reach
20 lines (19 loc) • 504 B
TypeScript
export default Writeable;
/**
* Defines an abstract class that represents a object that can be written to a file.
*
* @abstract
* @class Writeable
*/
declare class Writeable {
written: boolean;
/**
* Serializes the object to a JSON object.
*
* @abstract
* @param {string} prefix A prefix to be used internally to identify the object.
* @return {Object} The serialized object as a JSON object.
* @memberof Writeable
*/
serialize(prefix: string): any;
}