UNPKG

@gent-js/gent

Version:

template-based data generator.

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