• Parameters

    • cv: ClarityValue

      The Clarity Value to format

    • space: number = 0

      The indentation size of the output string. There's no indentation and no line breaks if space = 0

    Returns string

    Description

    format clarity values in clarity style strings with the ability to prettify the result with line break end space indentation

    Example

    prettyPrint(Cl.tuple({ id: Cl.some(Cl.uint(1)) }))
    // { id: (some u1) }

    prettyPrint(Cl.tuple({ id: Cl.uint(1) }, 2))
    // {
    // id: u1
    // }

Generated using TypeDoc