Skip to content

Commit

Permalink
Merge pull request #311 from derbyjs/ref-query-filter
Browse files Browse the repository at this point in the history
[TS typings] Allow model.ref's to param to be a Query or Filter, to match implementation
  • Loading branch information
ericyhwang committed Jul 19, 2024
2 parents d8fbfcd + 29b09cd commit b4992ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare module './Model' {
*
* @see https://derbyjs.github.io/derby/models/refs
*/
ref<S>(to: PathLike): ChildModel<S>;
ref<S>(to: Refable): ChildModel<S>;
/**
* Creates a reference at `path` pointing to another path `to`. Like a
* symlink, any reads/writes on `path` will work as if they were done on
Expand All @@ -61,7 +61,7 @@ declare module './Model' {
*
* @see https://derbyjs.github.io/derby/models/refs
*/
ref<S>(path: PathLike, to: PathLike, options?: RefOptions): ChildModel<S>;
ref<S>(path: PathLike, to: Refable, options?: RefOptions): ChildModel<S>;
_ref<T>(from: Segments, to: Segments, options?: RefOptions): void;

/**
Expand Down

0 comments on commit b4992ed

Please sign in to comment.