Skip to content

Provide a first-class API for calling converters from in-language BaseValueRenderer subclasses #1413

@HT154

Description

@HT154

Currently, renderers implemented in-language must include extensive logic to emulate how built-in renderers use converters. With #1333 this gap would grow even further.

It would be nice provide methods that in-language renderers can call to perform the same function.

Maybe something like this

abstract class BaseValueRenderer {
  // ...

  external function convertValue(value: Any): Any

  // and for annotation converter support
  external function convertProperty(name: String, value: Any): Pair<String, Any> | RenderDirective

  // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions