Closed jdufresne closed 1 month ago
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.
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.