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

[TS typings] Allow model.ref's to param to be a Query or Filter, to match implementation #311

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

ericyhwang
Copy link
Contributor

The implementation of model.ref allows the to param to be a Query or Filter. In those cases, it calls that query or filter object's ref method:

racer/src/Model/ref.ts

Lines 259 to 260 in d8fbfcd

// Make ref to reffable object, such as query or filter
if (!toPath) return to.ref(fromPath);

This updates the TypeScript typings for model.ref to allow that use-case.

@ericyhwang ericyhwang merged commit b4992ed into master Jul 19, 2024
10 checks passed
@ericyhwang ericyhwang deleted the ref-query-filter branch July 19, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants