I'm attempting to utilize jsymal.safeDump(somedata). So far, I've executed
npm install --save-dev @types/js-yaml
I've also configured my tsconfig file as:
{
"compilerOptions": {
"types": [
"cypress",
"js-yaml"
]
},
}
However, whenever I try to use jsyaml.safeDump, the following error occurs:
Property 'safeDump' does not exist on type 'typeof import("/myPath/node_modules/@types/js-yaml/index")
This issue can be resolved by using @ts-ignore, but I am curious if there is a different approach to utilizing safeDump without bypassing TypeScript?