We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
Looks like the version of JavaScriptKit you have installed is old — the latest versions no longer have generic parameters.
Sorry, something went wrong.
@jhoughjr does updating to JavaScriptKit 0.10.0 resolve the issue for you?
jhoughjr
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: