Skip to content

Commit d5bf228

Browse files
committedMar 10, 2024
expose NativeProxy private type
1 parent ea52f5b commit d5bf228

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

Diff for: ‎packages/model/src/-private/many-array.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { assert, deprecate } from '@ember/debug';
55

66
import { DEPRECATE_MANY_ARRAY_DUPLICATES } from '@ember-data/deprecations';
77
import type Store from '@ember-data/store';
8+
import type { NativeProxy } from '@ember-data/store/-private';
89
import {
910
ARRAY_SIGNAL,
1011
isStableIdentifier,
@@ -171,7 +172,7 @@ export default class RelatedCollection<T = unknown> extends RecordArray<T> {
171172

172173
[MUTATE](
173174
target: StableRecordIdentifier[],
174-
receiver: typeof Proxy<StableRecordIdentifier[], T[]>,
175+
receiver: typeof NativeProxy<StableRecordIdentifier[], T[]>,
175176
prop: string,
176177
args: unknown[],
177178
_SIGNAL: Signal

Diff for: ‎packages/store/src/-private.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export {
1919
// TODO this should be a deprecated helper but we have so much usage of it
2020
// to also eliminate
2121
export { default as coerceId } from './-private/utils/coerce-id';
22-
22+
export type { NativeProxy } from './-private/record-arrays/native-proxy-type-fix';
2323
export {
2424
default as RecordArray,
2525
default as IdentifierArray,

0 commit comments

Comments
 (0)