Skip to content

Commit

Permalink
Merge pull request #30 from swipely/add-missing-param
Browse files Browse the repository at this point in the history
Path can be an array of keys
  • Loading branch information
Andrew Goodale authored Aug 29, 2017
2 parents 07aeeec + ea120a3 commit dab29a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
export interface Cursor<T> {
readonly path: string[];

deref(path?: string): T | null;
deref(path?: string | string[]): T | null;
replace(val: T | null): void;
set(val: Partial<T>): void;
remove(): void;

refine<U>(path: string): Cursor<U>;
refine<U>(path: string | string[]): Cursor<U>;

equals(other: any): boolean;

Expand Down

0 comments on commit dab29a4

Please sign in to comment.