Skip to content

Commit

Permalink
More descriptive generic type naming (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb authored Sep 23, 2020
1 parent 27b4890 commit a84e96b
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 @@ -34,7 +34,7 @@ declare const loadJsonFile: {
})();
```
*/
<T = JsonValue>(filePath: string, options?: loadJsonFile.Options): Promise<T>;
<ReturnValueType = JsonValue>(filePath: string, options?: loadJsonFile.Options): Promise<ReturnValueType>;

/**
Read and parse a JSON file.
Expand All @@ -49,7 +49,7 @@ declare const loadJsonFile: {
//=> {foo: true}
```
*/
sync<T = JsonValue>(filePath: string, options?: loadJsonFile.Options): T;
sync<ReturnValueType = JsonValue>(filePath: string, options?: loadJsonFile.Options): ReturnValueType;
};

export = loadJsonFile;

0 comments on commit a84e96b

Please sign in to comment.