Skip to content

[BridgeJS] Optionals with custom types #666

@Amzd

Description

@Amzd

Optionals are supported like so:

@JSFunction func foo() throws(JSException) -> String? // ✅

but this does not work with objects:

@JSClass struct Foo {
    @JSGetter var id: String
}
@JSFunction func foo() throws(JSException) -> Foo? // ❌

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions