Skip to content

Commit 5cb0cc9

Browse files
authored
Merge pull request #20327 from boris-petrov/fix-native-array-mutation-method-types
Fix the types for the mutation-methods of `NativeArray`
2 parents 7049edb + 3ff9fb9 commit 5cb0cc9

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)