diff --git a/.changeset/cyan-points-rescue.md b/.changeset/cyan-points-rescue.md new file mode 100644 index 0000000..5dde652 --- /dev/null +++ b/.changeset/cyan-points-rescue.md @@ -0,0 +1,5 @@ +--- +'dataloader': patch +--- + +`name` is an optional property diff --git a/src/index.d.ts b/src/index.d.ts index 4ceb557..9749228 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -123,7 +123,7 @@ declare namespace DataLoader { * * Is `null` if not set in the constructor. */ - name: string | null; + name?: string | null; }; }