Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Nov 28, 2019
1 parent 1dae202 commit 3bbc431
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/model/addon/-private/system/promise-many-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { PromiseArray, proxyToContent } from '@ember-data/store/-private';
@class PromiseManyArray
@extends Ember.ArrayProxy
@private
*/
const PromiseManyArray = PromiseArray.extend({
links: FULL_LINKS_ON_RELATIONSHIPS ? reads('content.links') : undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/model/addon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
@public
*/

export { Model as default, attr, belongsTo, hasMany, ManyArray, PromiseManyArray } from './-private';
export { Model as default, attr, belongsTo, hasMany } from './-private';
8 changes: 5 additions & 3 deletions packages/store/addon/-private/system/model/internal-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type Relationships = import('@ember-data/record-data/-private/relationships/stat

// move to TS hacks module that we can delete when this is no longer a necessary recast
type ManyArray = InstanceType<typeof import('@ember-data/model/-private').ManyArray>;
type PromiseBelongsTo = InstanceType<typeof import('@ember-data/model/-private').ManyArray>;
type PromiseManyArray = InstanceType<typeof import('@ember-data/model/-private').ManyArray>;
type PromiseBelongsTo = InstanceType<typeof import('@ember-data/model/-private').PromiseBelongsTo>;
type PromiseManyArray = InstanceType<typeof import('@ember-data/model/-private').PromiseManyArray>;

/**
@module @ember-data/store
Expand Down Expand Up @@ -171,7 +171,9 @@ export default class InternalModel {
error: any;

constructor(public store: CoreStore | Store, public identifier: StableRecordIdentifier) {
_getModelPackage();
if (HAS_MODEL_PACKAGE) {
_getModelPackage();
}
this._id = identifier.id;
this.modelName = identifier.type;
this.clientId = identifier.lid;
Expand Down
8 changes: 1 addition & 7 deletions packages/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ const addonBaseConfig = addonBuildConfigForDataPackage(name);
module.exports = Object.assign({}, addonBaseConfig, {
shouldRollupPrivate: true,
externalDependenciesForPrivateModule() {
return [
'@ember-data/canary-features',
'ember-inflector',
'@ember-data/store/-debug',
'require',
'@ember-data/model',
];
return ['@ember-data/canary-features', 'ember-inflector', '@ember-data/store/-debug', 'require'];
},
});

0 comments on commit 3bbc431

Please sign in to comment.