Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve alpha types support #9256

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix lint
  • Loading branch information
runspired committed Mar 12, 2024
commit 6b19726727372af8101e02e1d382599e1b588ec7
5 changes: 2 additions & 3 deletions packages/model/src/-private/promise-belongs-to.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ import type { TypeFromInstanceOrString } from '@warp-drive/core-types/record';

import type { LegacySupport } from './legacy-relationships-support';
import { PromiseObject } from './promise-proxy-base';
import type BelongsToReference from './references/belongs-to';

export interface BelongsToProxyMeta<T = unknown> {
key: string;
@@ -51,9 +50,9 @@ class PromiseBelongsTo<T = unknown> extends Extended<T> {
declare _belongsToState: BelongsToProxyMeta<T>;

@cached
get id() {
get id(): string | null {
const { key, legacySupport } = this._belongsToState;
const ref = legacySupport.referenceFor('belongsTo', key) as BelongsToReference;
const ref = legacySupport.referenceFor('belongsTo', key);

return ref.id();
}
Loading