mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-24 04:03:52 +03:00
fix(core): Swift warning for null invoke.resolve() iOS plugin values (#10842)
`Any` does allow `nil`, but must be explicitly set to avoid the Swift warning
This commit is contained in:
parent
c55474f21d
commit
6696e48800
5
.changes/ios-invoke-response-null.md
Normal file
5
.changes/ios-invoke-response-null.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fixes a warning when using a null value on the `invoke.resolve()` iOS plugin API.
|
@ -4,7 +4,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
public typealias JsonObject = [String: Any]
|
||||
public typealias JsonObject = [String: Any?]
|
||||
|
||||
public enum JsonValue {
|
||||
case dictionary(JsonObject)
|
||||
|
Loading…
Reference in New Issue
Block a user