MarkusJx / node-java-bridge

A bridge between Node.js and Java
https://markusjx.github.io/node-java-bridge/
MIT License
112 stars 6 forks source link

Generator use `newInstance` method name #66

Closed sla100 closed 1 year ago

sla100 commented 1 year ago

Describe the bug When I used java-ts-gen i got factory method:

export declare class AppClass extends JavaClass {
  // ...
  public static newInstance(): Promise<App>;
  // ...
}

But regardles to documentation its name should be newInstanceAsync.

Environment

Additional context TypescriptDefinitionGenerator.ts#L343