Skip to content

Commit 3ff9fb9

Browse files
committed
Allow passing readonly arrays to the mutation-methods of NativeArray
1 parent 5ee2c9b commit 3ff9fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/preview/@ember/array/-private/native-array.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare module '@ember/array/-private/native-array' {
77
// Get an alias to the global Array type to use in inner scope below.
88
type Array<T> = T[];
99

10-
type AnyArray<T> = EmberArray<T> | Array<T>;
10+
type AnyArray<T> = EmberArray<T> | Array<T> | ReadonlyArray<T>;
1111

1212
/**
1313
* The final definition of NativeArray removes all native methods. This is the list of removed methods

0 commit comments

Comments
 (0)