UNPKG

1.15 kBSource Map (JSON)View Raw
1{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/lib/serialization/events.ts"],"names":[],"mappings":";;AAAA,4CAAwC;AAUxC,MAAa,cAAe,SAAQ,cAAK;IAkBrC,YAAY,IAAY,EAAE,OAA0B;QAChD,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AAtBD,wCAsBC","sourcesContent":["import { Event } from '../utils/events';\nimport { ProjectReflection } from '../models';\n\n/**\n * An event emitted by the [[Serializer]] class at the very beginning and\n * ending of the a project serialization process.\n *\n * @see [[Serializer.EVENT_BEGIN]]\n * @see [[Serializer.EVENT_END]]\n */\nexport class SerializeEvent extends Event {\n /**\n * The project the renderer is currently processing.\n */\n readonly project: ProjectReflection;\n\n /**\n * The path of the directory the serialized JSON should be written to.\n */\n outputDirectory?: string;\n\n /**\n * The name of the main JSON file (base + ext)\n */\n outputFile?: string;\n\n output: any;\n\n constructor(name: string, project: ProjectReflection) {\n super(name);\n this.project = project;\n }\n}\n"]}
\No newline at end of file