diff --git a/src/Model/ref.ts b/src/Model/ref.ts index 530aff53..a9ebfaf9 100644 --- a/src/Model/ref.ts +++ b/src/Model/ref.ts @@ -47,7 +47,7 @@ declare module './Model' { * * @see https://derbyjs.github.io/derby/models/refs */ - ref(to: PathLike): ChildModel; + ref(to: Refable): ChildModel; /** * 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 @@ -61,7 +61,7 @@ declare module './Model' { * * @see https://derbyjs.github.io/derby/models/refs */ - ref(path: PathLike, to: PathLike, options?: RefOptions): ChildModel; + ref(path: PathLike, to: Refable, options?: RefOptions): ChildModel; _ref(from: Segments, to: Segments, options?: RefOptions): void; /**