Hi Callstack team, we have been working with brownfield navigation library, but bumped onto this (issue?). For example, the brownfield.navigation.ts spec is:
export type DummyType = {
testParams: string;
};
export interface BrownfieldNavigationSpec {
test(arg: DummyType): void;
}
the generated native code (e.g: Swift) will be:
import Foundation
@objc public protocol BrownfieldNavigationDelegate: AnyObject {
@objc func test(_ arg: Any)
}
Is this intended behavior? How can we generate type-safe code? Considering DummyType is just normal, serializable Javascript object.
Hi Callstack team, we have been working with brownfield navigation library, but bumped onto this (issue?). For example, the
brownfield.navigation.tsspec is:the generated native code (e.g: Swift) will be:
Is this intended behavior? How can we generate type-safe code? Considering
DummyTypeis just normal, serializable Javascript object.