Skip to content

[BridgeJS] Support Array as parameter/return types as closure #598

@kateinoigakukun

Description

@kateinoigakukun

Today, any of the following cases are supported.

@JSFunction func c1() throws -> ([Int]) -> Void
@JSFunction func c2(_ f: JSTypedClosure<([String]) -> Void>) throws -> Void
@JS func c3() -> JSTypedClosure<() -> [Int]>
@JS func c4(_ f: () -> [String]) -> Void

I think we need to unify closure glue codegen part with the rest of import/export codegen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions