@ember-data/model 5.4.0-alpha.34 → 5.4.0-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "5.4.0-alpha.34",
3
+ "version": "5.4.0-alpha.35",
4
4
  "description": "A basic Ember implementation of a resource presentation layer for use with @ember-data/store",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -29,14 +29,14 @@
29
29
  "ember-data-logo-light.svg"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@ember-data/debug": "5.4.0-alpha.34",
33
- "@ember-data/graph": "5.4.0-alpha.34",
34
- "@ember-data/json-api": "5.4.0-alpha.34",
35
- "@ember-data/legacy-compat": "5.4.0-alpha.34",
36
- "@ember-data/store": "5.4.0-alpha.34",
37
- "@ember-data/tracking": "5.4.0-alpha.34",
32
+ "@ember-data/debug": "5.4.0-alpha.35",
33
+ "@ember-data/graph": "5.4.0-alpha.35",
34
+ "@ember-data/json-api": "5.4.0-alpha.35",
35
+ "@ember-data/legacy-compat": "5.4.0-alpha.35",
36
+ "@ember-data/store": "5.4.0-alpha.35",
37
+ "@ember-data/tracking": "5.4.0-alpha.35",
38
38
  "@ember/string": "^3.1.1",
39
- "@warp-drive/core-types": "0.0.0-alpha.20",
39
+ "@warp-drive/core-types": "0.0.0-alpha.21",
40
40
  "ember-inflector": "^4.0.2"
41
41
  },
42
42
  "peerDependenciesMeta": {
@@ -89,7 +89,7 @@
89
89
  }
90
90
  },
91
91
  "dependencies": {
92
- "@ember-data/private-build-infra": "5.4.0-alpha.34",
92
+ "@ember-data/private-build-infra": "5.4.0-alpha.35",
93
93
  "@ember/edition-utils": "^1.2.0",
94
94
  "@embroider/macros": "^1.13.5",
95
95
  "ember-cli-babel": "^8.2.0",
@@ -109,21 +109,21 @@
109
109
  "@babel/preset-env": "^7.23.9",
110
110
  "@babel/preset-typescript": "^7.23.3",
111
111
  "@babel/runtime": "^7.23.9",
112
- "@ember-data/debug": "5.4.0-alpha.34",
113
- "@ember-data/graph": "5.4.0-alpha.34",
114
- "@ember-data/json-api": "5.4.0-alpha.34",
115
- "@ember-data/legacy-compat": "5.4.0-alpha.34",
116
- "@ember-data/request": "5.4.0-alpha.34",
117
- "@ember-data/request-utils": "5.4.0-alpha.34",
118
- "@ember-data/store": "5.4.0-alpha.34",
119
- "@ember-data/tracking": "5.4.0-alpha.34",
112
+ "@ember-data/debug": "5.4.0-alpha.35",
113
+ "@ember-data/graph": "5.4.0-alpha.35",
114
+ "@ember-data/json-api": "5.4.0-alpha.35",
115
+ "@ember-data/legacy-compat": "5.4.0-alpha.35",
116
+ "@ember-data/request": "5.4.0-alpha.35",
117
+ "@ember-data/request-utils": "5.4.0-alpha.35",
118
+ "@ember-data/store": "5.4.0-alpha.35",
119
+ "@ember-data/tracking": "5.4.0-alpha.35",
120
120
  "@ember/string": "^3.1.1",
121
121
  "@embroider/addon-dev": "^4.1.2",
122
122
  "@glimmer/component": "^1.1.2",
123
123
  "@rollup/plugin-babel": "^6.0.4",
124
124
  "@rollup/plugin-node-resolve": "^15.2.3",
125
- "@warp-drive/core-types": "0.0.0-alpha.20",
126
- "@warp-drive/internal-config": "5.4.0-alpha.34",
125
+ "@warp-drive/core-types": "0.0.0-alpha.21",
126
+ "@warp-drive/internal-config": "5.4.0-alpha.35",
127
127
  "ember-inflector": "^4.0.2",
128
128
  "ember-source": "~5.6.0",
129
129
  "expect-type": "^0.18.0",
@@ -162,13 +162,13 @@ declare module '@ember-data/model/-private/attr' {
162
162
  @param {Object} options a hash of options
163
163
  @return {Attribute}
164
164
  */
165
- export declare function attr(): DataDecorator;
166
- export declare function attr<T>(type: TypeFromInstance<T>): DataDecorator;
167
- export declare function attr(type: string): DataDecorator;
168
- export declare function attr(options: AttrOptions): DataDecorator;
169
- export declare function attr<T>(type: TypeFromInstance<T>, options?: OptionsFromInstance<T>): DataDecorator;
170
- export declare function attr(type: string, options?: AttrOptions & object): DataDecorator;
171
- export declare function attr(target: object, key: string | symbol, desc?: PropertyDescriptor): void;
165
+ export function attr(): DataDecorator;
166
+ export function attr<T>(type: TypeFromInstance<T>): DataDecorator;
167
+ export function attr(type: string): DataDecorator;
168
+ export function attr(options: AttrOptions): DataDecorator;
169
+ export function attr<T>(type: TypeFromInstance<T>, options?: OptionsFromInstance<T>): DataDecorator;
170
+ export function attr(type: string, options?: AttrOptions & object): DataDecorator;
171
+ export function attr(target: object, key: string | symbol, desc?: PropertyDescriptor): void;
172
172
  export {};
173
173
  }
174
174
  //# sourceMappingURL=attr.d.ts.map
@@ -20,14 +20,14 @@ declare module '@ember-data/model/-private/belongs-to' {
20
20
  `belongsTo` takes a configuration hash as a second parameter, currently
21
21
  supported options are:
22
22
 
23
- - `async`: (*required*) A boolean value used to declare whether this is a sync (false) or async (true) relationship.
23
+ - `async`: (*required*) A boolean value used to whether this is a sync (false) or async (true) relationship.
24
24
  - `inverse`: (*required*) A string used to identify the inverse property on a related model, or `null`.
25
25
  - `polymorphic`: (*optional*) A boolean value to mark the relationship as polymorphic
26
- - `as`: (*optional*) A string used to declare the abstract type "this" record satisfies for polymorphism.
26
+ - `as`: (*optional*) A string used to the abstract type "this" record satisfies for polymorphism.
27
27
 
28
28
  ### Examples
29
29
 
30
- To declare a **one-to-many** (or many-to-many) relationship, use
30
+ To a **one-to-many** (or many-to-many) relationship, use
31
31
  `belongsTo` in combination with `hasMany`:
32
32
 
33
33
  ```js
@@ -46,7 +46,7 @@ declare module '@ember-data/model/-private/belongs-to' {
46
46
  }
47
47
  ```
48
48
 
49
- To declare a **one-to-one** relationship with managed inverses, use `belongsTo` for both sides:
49
+ To a **one-to-one** relationship with managed inverses, use `belongsTo` for both sides:
50
50
 
51
51
  ```js
52
52
  // app/models/author.js
@@ -64,7 +64,7 @@ declare module '@ember-data/model/-private/belongs-to' {
64
64
  }
65
65
  ```
66
66
 
67
- To declare a **one-to-one** relationship without managed inverses, use `belongsTo` for both sides
67
+ To a **one-to-one** relationship without managed inverses, use `belongsTo` for both sides
68
68
  with `null` as the inverse:
69
69
 
70
70
  ```js
@@ -83,7 +83,7 @@ declare module '@ember-data/model/-private/belongs-to' {
83
83
  }
84
84
  ```
85
85
 
86
- To declare a one-to-none relationship between two models, use
86
+ To a one-to-none relationship between two models, use
87
87
  `belongsTo` with inverse set to `null` on just one side::
88
88
 
89
89
  ```js
@@ -125,7 +125,7 @@ declare module '@ember-data/model/-private/belongs-to' {
125
125
 
126
126
  #### Polymorphic Relationships
127
127
 
128
- To declare a polymorphic relationship, use `hasMany` with the `polymorphic`
128
+ To a polymorphic relationship, use `hasMany` with the `polymorphic`
129
129
  option set to `true`:
130
130
 
131
131
  ```js
@@ -144,7 +144,7 @@ declare module '@ember-data/model/-private/belongs-to' {
144
144
  Polymorphic relationships with `inverse` set to a string will only accept records with a matching
145
145
  inverse relationships declaring itself as satisfying the abstract type.
146
146
 
147
- Below, 'as' is used to declare the that 'post' record satisfies the abstract type 'commentable'
147
+ Below, 'as' is used to the that 'post' record satisfies the abstract type 'commentable'
148
148
  for this relationship.
149
149
 
150
150
  ```js
@@ -157,11 +157,11 @@ declare module '@ember-data/model/-private/belongs-to' {
157
157
  ```
158
158
 
159
159
  Note: every Model that declares an inverse to a polymorphic relationship must
160
- declare itself exactly the same. This is because polymorphism is based on structural
160
+ itself exactly the same. This is because polymorphism is based on structural
161
161
  traits.
162
162
 
163
163
  Polymorphic to polymorphic relationships are supported. Both sides of the relationship
164
- must be declared as polymorphic, and the `as` option must be used to declare the abstract
164
+ must be declared as polymorphic, and the `as` option must be used to the abstract
165
165
  type each record satisfies on both sides.
166
166
 
167
167
  @method belongsTo
@@ -172,9 +172,9 @@ declare module '@ember-data/model/-private/belongs-to' {
172
172
  @param {object} options (optional) a hash of options
173
173
  @return {PropertyDescriptor} relationship
174
174
  */
175
- export declare function belongsTo(): never;
176
- export declare function belongsTo(type: string): never;
177
- export declare function belongsTo<T>(type: TypeFromInstance<NoNull<T>>, options: RelationshipOptions<T, boolean>): RelationshipDecorator<T>;
178
- export declare function belongsTo(type: string, options: RelationshipOptions<unknown, boolean>): RelationshipDecorator<unknown>;
175
+ export function belongsTo(): never;
176
+ export function belongsTo(type: string): never;
177
+ export function belongsTo<T>(type: TypeFromInstance<NoNull<T>>, options: RelationshipOptions<T, boolean>): RelationshipDecorator<T>;
178
+ export function belongsTo(type: string, options: RelationshipOptions<unknown, boolean>): RelationshipDecorator<unknown>;
179
179
  }
180
180
  //# sourceMappingURL=belongs-to.d.ts.map
@@ -2,7 +2,7 @@ declare module '@ember-data/model/-private/debug/assert-polymorphic-type' {
2
2
  import type { StableRecordIdentifier } from '@warp-drive/core-types';
3
3
  import type Store from '@ember-data/store';
4
4
  import type { UpgradedMeta } from '@ember-data/graph/-private/-edge-definition';
5
- declare let assertPolymorphicType: (parentIdentifier: StableRecordIdentifier, parentDefinition: UpgradedMeta, addedIdentifier: StableRecordIdentifier, store: Store) => void;
5
+ let assertPolymorphicType: (parentIdentifier: StableRecordIdentifier, parentDefinition: UpgradedMeta, addedIdentifier: StableRecordIdentifier, store: Store) => void;
6
6
  export { assertPolymorphicType };
7
7
  }
8
8
  //# sourceMappingURL=assert-polymorphic-type.d.ts.map
@@ -16,7 +16,7 @@ declare module '@ember-data/model/-private/errors' {
16
16
  clear(): void;
17
17
  _has(name: string): boolean;
18
18
  }
19
- declare const ArrayProxyWithCustomOverrides: new <T>() => ArrayProxyWithCustomOverrides<T>;
19
+ const ArrayProxyWithCustomOverrides: new <T>() => ArrayProxyWithCustomOverrides<T>;
20
20
  /**
21
21
  Holds validation errors for a given record, organized by attribute names.
22
22
 
@@ -92,7 +92,7 @@ declare module '@ember-data/model/-private/errors' {
92
92
  @public
93
93
  @extends Ember.ArrayProxy
94
94
  */
95
- declare class Errors extends ArrayProxyWithCustomOverrides<ValidationError> {
95
+ class Errors extends ArrayProxyWithCustomOverrides<ValidationError> {
96
96
  __record: {
97
97
  currentState: RecordState;
98
98
  };
@@ -8,14 +8,14 @@ declare module '@ember-data/model/-private/has-many' {
8
8
  `hasMany` takes a configuration hash as a second parameter, currently
9
9
  supported options are:
10
10
 
11
- - `async`: (*required*) A boolean value used to declare whether this is a sync (false) or async (true) relationship.
11
+ - `async`: (*required*) A boolean value used to whether this is a sync (false) or async (true) relationship.
12
12
  - `inverse`: (*required*) A string used to identify the inverse property on a related model, or `null`.
13
13
  - `polymorphic`: (*optional*) A boolean value to mark the relationship as polymorphic
14
- - `as`: (*optional*) A string used to declare the abstract type "this" record satisfies for polymorphism.
14
+ - `as`: (*optional*) A string used to the abstract type "this" record satisfies for polymorphism.
15
15
 
16
16
  ### Examples
17
17
 
18
- To declare a **many-to-one** (or one-to-many) relationship, use
18
+ To a **many-to-one** (or one-to-many) relationship, use
19
19
  `belongsTo` in combination with `hasMany`:
20
20
 
21
21
  ```js
@@ -35,7 +35,7 @@ declare module '@ember-data/model/-private/has-many' {
35
35
  }
36
36
  ```
37
37
 
38
- To declare a **many-to-many** relationship with managed inverses, use `hasMany` for both sides:
38
+ To a **many-to-many** relationship with managed inverses, use `hasMany` for both sides:
39
39
 
40
40
  ```js
41
41
  // app/models/post.js
@@ -53,7 +53,7 @@ declare module '@ember-data/model/-private/has-many' {
53
53
  }
54
54
  ```
55
55
 
56
- To declare a **many-to-many** relationship without managed inverses, use `hasMany` for both sides
56
+ To a **many-to-many** relationship without managed inverses, use `hasMany` for both sides
57
57
  with `null` as the inverse:
58
58
 
59
59
  ```js
@@ -72,7 +72,7 @@ declare module '@ember-data/model/-private/has-many' {
72
72
  }
73
73
  ```
74
74
 
75
- To declare a many-to-none relationship between two models, use
75
+ To a many-to-none relationship between two models, use
76
76
  `hasMany` with inverse set to `null` on just one side::
77
77
 
78
78
  ```js
@@ -114,7 +114,7 @@ declare module '@ember-data/model/-private/has-many' {
114
114
 
115
115
  #### Polymorphic Relationships
116
116
 
117
- To declare a polymorphic relationship, use `hasMany` with the `polymorphic`
117
+ To a polymorphic relationship, use `hasMany` with the `polymorphic`
118
118
  option set to `true`:
119
119
 
120
120
  ```js
@@ -133,7 +133,7 @@ declare module '@ember-data/model/-private/has-many' {
133
133
  Polymorphic relationships with `inverse` set to a string will only accept records with a matching
134
134
  inverse relationships declaring itself as satisfying the abstract type.
135
135
 
136
- Below, 'as' is used to declare the that 'post' record satisfies the abstract type 'commentable'
136
+ Below, 'as' is used to the that 'post' record satisfies the abstract type 'commentable'
137
137
  for this relationship.
138
138
 
139
139
  ```js
@@ -146,11 +146,11 @@ declare module '@ember-data/model/-private/has-many' {
146
146
  ```
147
147
 
148
148
  Note: every Model that declares an inverse to a polymorphic relationship must
149
- declare itself exactly the same. This is because polymorphism is based on structural
149
+ itself exactly the same. This is because polymorphism is based on structural
150
150
  traits.
151
151
 
152
152
  Polymorphic to polymorphic relationships are supported. Both sides of the relationship
153
- must be declared as polymorphic, and the `as` option must be used to declare the abstract
153
+ must be declared as polymorphic, and the `as` option must be used to the abstract
154
154
  type each record satisfies on both sides.
155
155
 
156
156
  @method hasMany
@@ -161,9 +161,9 @@ declare module '@ember-data/model/-private/has-many' {
161
161
  @param {object} options (optional) a hash of options
162
162
  @return {PropertyDescriptor} relationship
163
163
  */
164
- export declare function hasMany(): never;
165
- export declare function hasMany(type: string): never;
166
- export declare function hasMany<T>(type: TypeFromInstance<NoNull<T>>, options: RelationshipOptions<T, boolean>): RelationshipDecorator<T>;
167
- export declare function hasMany(type: string, options: RelationshipOptions<unknown, boolean>): RelationshipDecorator<unknown>;
164
+ export function hasMany(): never;
165
+ export function hasMany(type: string): never;
166
+ export function hasMany<T>(type: TypeFromInstance<NoNull<T>>, options: RelationshipOptions<T, boolean>): RelationshipDecorator<T>;
167
+ export function hasMany(type: string, options: RelationshipOptions<unknown, boolean>): RelationshipDecorator<unknown>;
168
168
  }
169
169
  //# sourceMappingURL=has-many.d.ts.map
@@ -3,11 +3,11 @@ declare module '@ember-data/model/-private/hooks' {
3
3
  import type { StableRecordIdentifier } from '@warp-drive/core-types';
4
4
  import type { TypeFromInstance } from '@warp-drive/core-types/record';
5
5
  import type { Model } from '@ember-data/model/-private/model';
6
- export declare function instantiateRecord(this: Store, identifier: StableRecordIdentifier, createRecordArgs: {
6
+ export function instantiateRecord(this: Store, identifier: StableRecordIdentifier, createRecordArgs: {
7
7
  [key: string]: unknown;
8
8
  }): Model;
9
- export declare function teardownRecord(record: Model): void;
10
- export declare function modelFor<T>(type: TypeFromInstance<T>): typeof Model | void;
11
- export declare function modelFor(type: string): typeof Model | void;
9
+ export function teardownRecord(record: Model): void;
10
+ export function modelFor<T>(type: TypeFromInstance<T>): typeof Model | void;
11
+ export function modelFor(type: string): typeof Model | void;
12
12
  }
13
13
  //# sourceMappingURL=hooks.d.ts.map
@@ -20,9 +20,9 @@ declare module '@ember-data/model/-private/legacy-relationships-support' {
20
20
  import PromiseManyArray from '@ember-data/model/-private/promise-many-array';
21
21
  import BelongsToReference from '@ember-data/model/-private/references/belongs-to';
22
22
  import HasManyReference from '@ember-data/model/-private/references/has-many';
23
- export declare const LEGACY_SUPPORT: Map<StableRecordIdentifier | MinimalLegacyRecord, LegacySupport>;
24
- export declare function lookupLegacySupport(record: MinimalLegacyRecord): LegacySupport;
25
- export declare class LegacySupport {
23
+ export const LEGACY_SUPPORT: Map<StableRecordIdentifier | MinimalLegacyRecord, LegacySupport>;
24
+ export function lookupLegacySupport(record: MinimalLegacyRecord): LegacySupport;
25
+ export class LegacySupport {
26
26
  record: MinimalLegacyRecord;
27
27
  store: Store;
28
28
  graph: Graph;
@@ -57,6 +57,6 @@ declare module '@ember-data/model/-private/legacy-relationships-support' {
57
57
  _findBelongsToByJsonApiResource(resource: SingleResourceRelationship, parentIdentifier: StableRecordIdentifier, relationship: ResourceEdge, options?: BaseFinderOptions): Promise<StableRecordIdentifier | null>;
58
58
  destroy(): void;
59
59
  }
60
- export declare function areAllInverseRecordsLoaded(store: Store, resource: JsonApiRelationship): boolean;
60
+ export function areAllInverseRecordsLoaded(store: Store, resource: JsonApiRelationship): boolean;
61
61
  }
62
62
  //# sourceMappingURL=legacy-relationships-support.d.ts.map
@@ -19,16 +19,16 @@ declare module '@ember-data/model/-private/model-methods' {
19
19
  save<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
20
20
  destroyRecord<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
21
21
  }
22
- export declare function rollbackAttributes(this: MinimalLegacyRecord): void;
23
- export declare function unloadRecord(this: MinimalLegacyRecord): void;
24
- export declare function belongsTo(this: MinimalLegacyRecord, prop: string): import("./references/belongs-to").default<unknown, string, unknown> | import("./references/has-many").default<unknown, string, unknown>;
25
- export declare function hasMany(this: MinimalLegacyRecord, prop: string): import("./references/belongs-to").default<unknown, string, unknown> | import("./references/has-many").default<unknown, string, unknown>;
26
- export declare function reload<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
27
- export declare function changedAttributes<T extends MinimalLegacyRecord>(this: T): ChangedAttributesHash;
28
- export declare function serialize<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): unknown;
29
- export declare function deleteRecord<T extends MinimalLegacyRecord>(this: T): void;
30
- export declare function save<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
31
- export declare function destroyRecord<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
32
- export declare function createSnapshot<T extends MinimalLegacyRecord>(this: T): Snapshot<T>;
22
+ export function rollbackAttributes(this: MinimalLegacyRecord): void;
23
+ export function unloadRecord(this: MinimalLegacyRecord): void;
24
+ export function belongsTo(this: MinimalLegacyRecord, prop: string): import("./references/belongs-to").default<unknown, string, unknown> | import("./references/has-many").default<unknown, string, unknown>;
25
+ export function hasMany(this: MinimalLegacyRecord, prop: string): import("./references/belongs-to").default<unknown, string, unknown> | import("./references/has-many").default<unknown, string, unknown>;
26
+ export function reload<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
27
+ export function changedAttributes<T extends MinimalLegacyRecord>(this: T): ChangedAttributesHash;
28
+ export function serialize<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): unknown;
29
+ export function deleteRecord<T extends MinimalLegacyRecord>(this: T): void;
30
+ export function save<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
31
+ export function destroyRecord<T extends MinimalLegacyRecord>(this: T, options?: Record<string, unknown>): Promise<T>;
32
+ export function createSnapshot<T extends MinimalLegacyRecord>(this: T): Snapshot<T>;
33
33
  }
34
34
  //# sourceMappingURL=model-methods.d.ts.map
@@ -21,9 +21,9 @@ declare module '@ember-data/model/-private/promise-belongs-to' {
21
21
  interface PromiseObjectType<T> extends PromiseProxyMixin<T | null>, ObjectProxy<T> {
22
22
  new <PT>(...args: unknown[]): PromiseObjectType<PT>;
23
23
  }
24
- declare class PromiseObjectType<T> {
24
+ class PromiseObjectType<T> {
25
25
  }
26
- declare const Extended: PromiseObjectType<OpaqueRecordInstance>;
26
+ const Extended: PromiseObjectType<OpaqueRecordInstance>;
27
27
  /**
28
28
  @module @ember-data/model
29
29
  */
@@ -36,7 +36,7 @@ declare module '@ember-data/model/-private/promise-belongs-to' {
36
36
  @extends PromiseObject
37
37
  @private
38
38
  */
39
- declare class PromiseBelongsTo<T = unknown> extends Extended<T> {
39
+ class PromiseBelongsTo<T = unknown> extends Extended<T> {
40
40
  _belongsToState: BelongsToProxyMeta<T>;
41
41
  get id(): string | null;
42
42
  get meta(): void;
@@ -3,7 +3,7 @@ declare module '@ember-data/model/-private/promise-proxy-base' {
3
3
 
4
4
  export interface PromiseObject<T> extends Promise<T> {}
5
5
  export class PromiseObject<T> extends ObjectProxy<T> {
6
- declare content?: T | null;
6
+ content?: T | null;
7
7
 
8
8
  /*
9
9
  * If the proxied promise is rejected this will contain the reason
@@ -14,8 +14,8 @@ declare module '@ember-data/model/-private/record-state' {
14
14
  *
15
15
  * @internal
16
16
  */
17
- export declare function tagged<T extends object, K extends keyof T & string>(_target: T, key: K, desc: PropertyDescriptor): PropertyDescriptor;
18
- export declare function notifySignal<T extends object, K extends keyof T & string>(obj: T, key: K): void;
17
+ export function tagged<T extends object, K extends keyof T & string>(_target: T, key: K, desc: PropertyDescriptor): PropertyDescriptor;
18
+ export function notifySignal<T extends object, K extends keyof T & string>(obj: T, key: K): void;
19
19
  /**
20
20
  Historically EmberData managed a state machine
21
21
  for each record, the localState for which
@@ -509,7 +509,7 @@ declare module '@ember-data/model/-private/references/has-many' {
509
509
  */
510
510
  reload(options?: BaseFinderOptions): Promise<unknown> | import("../promise-many-array").default<unknown>;
511
511
  }
512
- export declare function isMaybeResource(object: ExistingResourceObject | ResourceIdentifier): object is ExistingResourceObject;
512
+ export function isMaybeResource(object: ExistingResourceObject | ResourceIdentifier): object is ExistingResourceObject;
513
513
  export {};
514
514
  }
515
515
  //# sourceMappingURL=has-many.d.ts.map
@@ -4,7 +4,7 @@ declare module '@ember-data/model/-private/schema-provider' {
4
4
  import type { RecordIdentifier } from '@warp-drive/core-types/identifier';
5
5
  import type { AttributesSchema, RelationshipsSchema } from '@warp-drive/core-types/schema';
6
6
  import type { ModelFactory, ModelStore } from '@ember-data/model/-private/model';
7
- export declare class ModelSchemaProvider {
7
+ export class ModelSchemaProvider {
8
8
  store: ModelStore;
9
9
  _relationshipsDefCache: Record<string, RelationshipsSchema>;
10
10
  _attributesDefCache: Record<string, AttributesSchema>;
@@ -21,7 +21,7 @@ declare module '@ember-data/model/-private/schema-provider' {
21
21
  }): RelationshipsSchema;
22
22
  doesTypeExist(modelName: string): boolean;
23
23
  }
24
- export declare function buildSchema(store: Store): ModelSchemaProvider;
25
- export declare function getModelFactory(store: ModelStore, type: string): ModelFactory | null;
24
+ export function buildSchema(store: Store): ModelSchemaProvider;
25
+ export function getModelFactory(store: ModelStore, type: string): ModelFactory | null;
26
26
  }
27
27
  //# sourceMappingURL=schema-provider.d.ts.map
@@ -2,10 +2,10 @@ declare module '@ember-data/model/-private/util' {
2
2
  export type DecoratorPropertyDescriptor = (PropertyDescriptor & {
3
3
  initializer?: () => unknown;
4
4
  }) | undefined;
5
- export declare function isElementDescriptor(args: unknown[]): args is [object, string, DecoratorPropertyDescriptor];
5
+ export function isElementDescriptor(args: unknown[]): args is [object, string, DecoratorPropertyDescriptor];
6
6
  export type DataDecorator = (target: object, key: string, desc?: DecoratorPropertyDescriptor) => DecoratorPropertyDescriptor;
7
7
  export type DataDecoratorFactory = (...args: unknown[]) => DataDecorator;
8
- export declare function computedMacroWithOptionalParams(fn: DataDecorator | DataDecoratorFactory): (...maybeDesc: unknown[]) => DecoratorPropertyDescriptor | DataDecorator;
9
- export declare function normalizeModelName(type: string): string;
8
+ export function computedMacroWithOptionalParams(fn: DataDecorator | DataDecoratorFactory): (...maybeDesc: unknown[]) => DecoratorPropertyDescriptor | DataDecorator;
9
+ export function normalizeModelName(type: string): string;
10
10
  }
11
11
  //# sourceMappingURL=util.d.ts.map
@@ -4,8 +4,8 @@ declare module '@ember-data/model/migration-support' {
4
4
  type SchemaService = {
5
5
  registerDerivation(name: string, derivation: Derivation<unknown, unknown>): void;
6
6
  };
7
- export declare function withFields(fields: FieldSchema[]): FieldSchema[];
8
- export declare function registerDerivations(schema: SchemaService): void;
7
+ export function withFields(fields: FieldSchema[]): FieldSchema[];
8
+ export function registerDerivations(schema: SchemaService): void;
9
9
  export {};
10
10
  }
11
11
  //# sourceMappingURL=migration-support.d.ts.map