A class to handle all the tasks relating to types for the OpenRPC Document.

Constructors

Properties

openrpcDocument: OpenrpcDocument
toStringOptionsDefaults: OpenRPCTypingsToStringOptions = ...
transpiler: Transpiler

Methods

  • A method that returns all the method signature type aliases, called Method Typings, for the [[@open-rpc/meta-schema#MethodObject]] in an [[@open-rpc/meta-schema#MethodObject]] Document.

    Parameters

    Returns string

    A string containing all the typings.

  • A method that returns all the typings for the schemas in an [[OpenRPC]] Document.

    Parameters

    Returns string

    A string containing all the typings.

  • A configurable way to output the typings into a string.

    Parameters

    Returns string

    a multi-line string containing the types in the language specified.