mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-28 17:34:25 -04:00
better casts
This commit is contained in:
parent
6de2432c53
commit
11d621c9be
4 changed files with 4 additions and 4 deletions
|
@ -597,7 +597,7 @@ class VeilidJS extends Veilid {
|
|||
List<CryptoKind> validCryptoKinds() {
|
||||
final vck = jsonDecode(js_util.callMethod(wasm, 'valid_crypto_kinds', []))
|
||||
as List<dynamic>;
|
||||
return vck.map((v) => v as CryptoKind).toList();
|
||||
return vck.cast<CryptoKind>();
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue