Skip to content

Commit

Permalink
fix: TS types for the new name property (#331)
Browse files Browse the repository at this point in the history
* fix: TS types for the new name property

* optional

* Revert "optional"

This reverts commit a012ca7.
  • Loading branch information
saihaj committed Feb 2, 2023
1 parent afa3cb3 commit 6d2efb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-points-rescue.md
@@ -0,0 +1,5 @@
---
'dataloader': patch
---

`name` is an optional property
2 changes: 1 addition & 1 deletion src/index.d.ts
Expand Up @@ -123,7 +123,7 @@ declare namespace DataLoader {
*
* Is `null` if not set in the constructor.
*/
name: string | null;
name?: string | null;
};
}

Expand Down

0 comments on commit 6d2efb7

Please sign in to comment.