Remove "skipLibCheck" from formio-builder tsconfig #5017
Labels
blocked
enhancement
triage
Issue needs to be validated. Remove this label if the issue considered valid.
Thema / Theme
Frontend
Omschrijving / Description
This issue describes a cleanup action for open-formulieren/formio-builder#198
The
"skipLibCheck": true
in the formio-builder tsconfig.json is a temporary solution for areact-leaflet-draw
issue (see alex3165/react-leaflet-draw#188).The
index.d.ts
file in the react-leaflet-draw package (so insidenode_modules
) tries to import and use a type definition, that is a namespace. This results into typescript errorTS2709: Cannot use namespace XYZ as a type
.Seeing as this issue comes from a package inside
node_modules
, we cannot (easily) fix this ourselves. That is why we currently need"skipLibCheck": true
.Added value / Toegevoegde waarde
"skipLibCheck": true
skips typescript checking of *.d.ts files, removing useful typescript information https://www.typescriptlang.org/tsconfig/#skipLibCheck.Aanvullende opmerkingen / Additional context
We can only do this if the issue in
react-leaflet-draw
(alex3165/react-leaflet-draw#188) has been resolvedThe text was updated successfully, but these errors were encountered: