UNPKG

@gent-js/gent

Version:

template-based data generator.

11 lines (10 loc) 567 B
import { type DocumentContext } from "../../document/index.js"; import { AbstractJsonable } from "../abstractJsonable.js"; import type { JsonableValue } from "../jsonableTypes.js"; import type { JsonString } from "../jsonTypes.js"; export declare class JsonStringJsonable extends AbstractJsonable { private readonly content; readonly type: "string"; constructor(content: JsonableValue, probability: number | undefined, weight: number | undefined); protected toJSONImpl(keyOrIndex: string | number, context: DocumentContext): JsonString | undefined; }