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] - add a public Typescript interface for the minimal required adapter interface #6372

Closed
wants to merge 3 commits into from

Conversation

snewcomer
Copy link
Contributor

#6166

Ref #6113

shouldReloadAll(store: any, snapshots: any[]): boolean;
shouldBackgroundReloadRecord(store: any, snapshot: any): boolean;
shouldBackgroundReloadAll(store: any, snapshots: any[]): boolean;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we more closely define object or any as Record?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

store should be Store, snapshot should be Snapshot and snapshots should be SnapshotRecordArray, the return values of the promises should probably be unknown although any might be just as fine here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming we need to make typescript interfaces for these constructs as well then to consider this PR mergeable?

@runspired runspired added the 🌲 Project Trim 🌲 PRs related to https://github.com/emberjs/data/issues/6166 label Sep 11, 2019
@runspired
Copy link
Contributor

replacing with #6643

@runspired runspired closed this Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌲 Project Trim 🌲 PRs related to https://github.com/emberjs/data/issues/6166
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants