]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
types: Allow passing undefined for chart options (#11780)
authorJon Dufresne <jon.dufresne@gmail.com>
Tue, 21 May 2024 13:07:35 +0000 (06:07 -0700)
committerGitHub <noreply@github.com>
Tue, 21 May 2024 13:07:35 +0000 (09:07 -0400)
commit228a4856037cafcaa955eccde31e79968c94a8c8
tree5bffaca0d03a2bfafe7c6797f2f477ec454b99b8
parent5c9e5c66d2a5328338d38c271e2852de3642575c
types: Allow passing undefined for chart options (#11780)

When exactOptionalPropertyTypes, TypeScript distinguishes between the
value undefined and the property not existing. See:

https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes

For Chart.js options, this difference is not important and either
passing undefined or not including it have the same effect.
src/types/index.d.ts