Skip to content

Commit 6d2efb7

Browse files
authored
fix: TS types for the new name property (#331)
* fix: TS types for the new name property * optional * Revert "optional" This reverts commit a012ca7.
1 parent afa3cb3 commit 6d2efb7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cyan-points-rescue.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'dataloader': patch
3+
---
4+
5+
`name` is an optional property

src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ declare namespace DataLoader {
123123
*
124124
* Is `null` if not set in the constructor.
125125
*/
126-
name: string | null;
126+
name?: string | null;
127127
};
128128
}
129129

0 commit comments

Comments
 (0)