Skip to content

Include TypeScript callback names in missing-method errors - #188

Open
im-xiangda-li wants to merge 1 commit into
lightningdevkit:mainfrom
im-xiangda-li:fix/typescript-callback-method-error
Open

im-xiangda-li wants to merge 1 commit into
lightningdevkit:mainfrom
im-xiangda-li:fix/typescript-callback-method-error

Conversation

@im-xiangda-li

Copy link
Copy Markdown

Closes #83.

Include the expected callback method name alongside its numeric ID when the TypeScript bindings cannot find the method on the supplied object. This lets callers identify which method their implementation is missing from the error itself.

Regenerated the tracked callback dispatcher from the TypeScript generator. Exercised the generated code in Node with a working callback, a missing method, an unknown callback ID, and an unknown object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify TS missing-method error

1 participant