Types Inheriting from IJSWrapper
should have [IJSWrapperConverter]
attribute.
#8
Labels
IJSWrapper
should have [IJSWrapperConverter]
attribute.
#8
Adding the
IJSWrapperConverter
attribute fromBlazor.WebIDL
to types that implement or inherit fromIJSWrapper
would make JSInterop with the types defined in this library easier.This would make it so that you can do this:
instead of:
This problem only gets worse when we have option types that hold wrapper types like the
MediaStreamAudioSorceOptions
type fromBlazor.WebAudio
.Eventually I would like an analyzer that makes an error in the build if you have forgotten to add the
IJSWrapperConverter
attribute to some class.The text was updated successfully, but these errors were encountered: