New JSImport / JSExport attribute support #806
linkdotnet
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
FFS did they forget about testing again? Is this not using IJSRuntime under the hood? If yes, then things just works. If this is a new interop API entirely then, yeah. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating a discussion before creating a useless issue, because I am not 100% sure about the stuff I will write in a second.
To give a bit context, I will talk about the following API Proposal: JavaScript interop with [JSImport] and [JSExport] attributes and Roslyn
In its current state it will be public with .net7.0.
The idea is to use Roslyn to create importable or exportable JS-Interop functions.
The simple example:
Will give an easy way of having a strongly types C# function which calls JS-code.
This scenario is right now not supported by bUnit. Or at least I don't see how. As I understand this function this will be widely used as it makes interop trivial in a lot of scenarios. At the moment this is limited to wasm.
If that makes sense to you @egil I will transform this into a reasonable feature request :D
EDIT: This is also the reason our nightly build is failing as the "old" way got flagged obsolete: #788
Beta Was this translation helpful? Give feedback.
All reactions