Avatar
omochimetaru 4/1/2024 12:57 PM
@Yuta Saito public extension JSValue { /// An unsafe convenience method of `JSObject.subscript(_ name: String) -> ((ConvertibleToJSValue...) -> JSValue)?` /// - Precondition: `self` must be a JavaScript Object and specified member should be a callable object. subscript(dynamicMember name: String) -> ((ConvertibleToJSValue...) -> JSValue) { object![dynamicMember: name]! } これなんだけど、このsubscriptから返ってくる関数に @discardableResult 付ける方法ないよねえ?