OpenCombineJS
OpenCombineJS copied to clipboard
Example docs error in function declaration
this function def in the example: func fetch(_ url: String) -> JSPromise { JSPromise(jsFetch(url).object!)! }
should be
func fetch(_ url: String) -> JSPromise<JSObject, JSError> { JSPromise(jsFetch(url).object!)! }
Xcode will fix is as <Any,Any> which does not help.
Looks like the version of JavaScriptKit you have installed is old — the latest versions no longer have generic parameters.
@jhoughjr does updating to JavaScriptKit 0.10.0 resolve the issue for you?