TinyMCE This type parameter might need an extends DialogData constraint

Error on buling the project using TinyMCE:

Error: node_modules/tinymce/tinymce.d.ts:702:63 - error 
TS2344: Type 'T' does not satisfy the constraint 'DialogData'.

702 declare type DialogActionHandler<T> = 
(api: DialogInstanceApi<T>, details: DialogActionDetails) => void;


The solution to fix the above issue is to add “skipLibCheck”: true in your tsconfig.json of your project:


  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "skipLibCheck": true,