Skip to content

Commit

Permalink
[TS typings] Allow model.ref's to param to be a Query or Filter, to m…
Browse files Browse the repository at this point in the history
…atch runtime behavior
  • Loading branch information
ericyhwang committed Jul 18, 2024
1 parent d8fbfcd commit 29b09cd
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 29b09cd

Please sign in to comment.