@compas/code-gen
Version:
Generate various boring parts of your server
21 lines (20 loc) • 546 B
TypeScript
/**
* Start a new block. This system can only be used for targets that use `{` and `}`
* around if-blocks, etc.
*
* @param {import("./context").GenerateFile} file
* @param {string} contents
* @returns {void}
*/
export function fileBlockStart(
file: import("./context").GenerateFile,
contents: string,
): void;
/**
* End a block, dedent the file.
*
* @param {import("./context").GenerateFile} file
* @returns {void}
*/
export function fileBlockEnd(file: import("./context").GenerateFile): void;
//# sourceMappingURL=block.d.ts.map