Skip to content

Commit

Permalink
Fix parameter name order for onDidChange callback (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbot95 authored and sindresorhus committed Apr 28, 2019
1 parent 0628bb6 commit 201c2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ declare class Conf<T = unknown> implements Iterable<[string, T]> {
*/
onDidChange(
key: string,
callback: (oldValue: T | undefined, newValue: T | undefined) => void
callback: (newValue: T | undefined, oldValue: T | undefined) => void
): () => void;

[Symbol.iterator](): IterableIterator<[string, T]>;
Expand Down

0 comments on commit 201c2ff

Please sign in to comment.