From 86b175d23097f871a4455755965adda6e6b55037 Mon Sep 17 00:00:00 2001 From: Srujan Gaddam Date: Mon, 17 Jun 2024 13:49:49 -0700 Subject: [PATCH] Add Float16Array alias This is a new typed array in the w3 spec. Since we don't have a specific type for this, we alias it to JSTypedArray. --- tool/generator/type_aliases.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/generator/type_aliases.dart b/tool/generator/type_aliases.dart index 7b93f80c..0ef0083c 100644 --- a/tool/generator/type_aliases.dart +++ b/tool/generator/type_aliases.dart @@ -26,9 +26,10 @@ const idlOrBuiltinToJsTypeAliases = { 'Uint8ClampedArray': 'JSUint8ClampedArray', 'Float32Array': 'JSFloat32Array', 'Float64Array': 'JSFloat64Array', - // TODO(srujzs): Change these aliases if we add these two as JS types. + // TODO(srujzs): Change these aliases if we add these as JS types. 'BigInt64Array': 'JSTypedArray', 'BigUint64Array': 'JSTypedArray', + 'Float16Array': 'JSTypedArray', // Array aliases. 'sequence': 'JSArray',