From 3ff9fb91fb3296f811b14ec2f9d7827b749f98d5 Mon Sep 17 00:00:00 2001 From: Boris Petrov Date: Wed, 21 Dec 2022 14:29:20 +0200 Subject: [PATCH] Allow passing readonly arrays to the mutation-methods of `NativeArray` --- types/preview/@ember/array/-private/native-array.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/preview/@ember/array/-private/native-array.d.ts b/types/preview/@ember/array/-private/native-array.d.ts index 50781a30d77..d7be1f52cd3 100644 --- a/types/preview/@ember/array/-private/native-array.d.ts +++ b/types/preview/@ember/array/-private/native-array.d.ts @@ -7,7 +7,7 @@ declare module '@ember/array/-private/native-array' { // Get an alias to the global Array type to use in inner scope below. type Array = T[]; - type AnyArray = EmberArray | Array; + type AnyArray = EmberArray | Array | ReadonlyArray; /** * The final definition of NativeArray removes all native methods. This is the list of removed methods