jsii-docgen
Version:
generates api docs for jsii modules
20 lines (19 loc) • 423 B
TypeScript
import { Readable } from 'node:stream';
export interface JsonFormattingOptions {
/**
* The number of spaces to use for indentation.
*
* @default 2
*/
readonly spaces?: number;
}
/**
* Type-safe Json renderer.
*/
export declare class Json<T> {
readonly content: T;
private opts;
constructor(content: T, opts?: JsonFormattingOptions);
render(): string;
stream(): Readable;
}