dotnet / dotnet/aspnetcore

Generate typescript type definitions for invoking jsinvokable methods

Open
#40,499 7 comments 11 reactions 0 assignees View on GitHub
area-blazor enhancement feature-blazor-jsinterop Pillar: New Blazor Priority:1
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When generating webassembly from rust, it will also generate typescript bindings. Maybe Blazor could do the same?

Initial thinking would be to generate typescript bindings for anything marked w/ jsinvokable. Generating jsdoc bindings could be useful as well.

### Describe the solution you'd like

Anything in my .net library marked w/ jsinvokable, which is compiled to webassembly, can be called via typescript bindings which are generated. For a great example, see how rust generates typescript bindings for rust which has been compiled to webassembly.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.