Skip to content

Optionally handle interfaces like abstract classes #89

Open
@laurensdeb

Description

@laurensdeb

Problem description

When running the generator on parameters that implement an interface like below, we noticed that the generator produces errors like error: Unsupported field type TSMethodSignature in Handler. In the --lenient mode this does allow us to generate .jsonld files, but they miss all of the parameters deriving from the interface.

import type { Observable } from 'rxjs';

export interface Handler<T = void, S = void> {

  handle(input: T): Observable<S>;

}

Example code

HandlersJS - Handler.ts

Environment:

    "componentsjs": "5.0.0-beta.4",
    "componentsjs-generator": "3.0.0-beta.7",

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions