Skip to content

Generated typescript has no reference to deprecated service messages #120

@zerovox

Description

@zerovox

What happened?

I marked some fields with a deprecation message in a service api:

      getGraph:
        deprecated: since 2.0
        returns: GetGraphResponse
        ...

It generated the following typing:

getGraph(graphRid: string): Promise<IGetGraphResponse>;

What did you want to happen?

I expected this deprecation message to appear somewhere in the generated typescript, probably utilizing JSDoc deprecated annotation which is supported by all good IDEs:

/**
 * @deprecated since 2.0
 */ 
getGraph(graphRid: string): Promise<IGetGraphResponse>;

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