block-content-to-markdown icon indicating copy to clipboard operation
block-content-to-markdown copied to clipboard

TypScript

Open codercatdev opened this issue 8 months ago • 0 comments

Add typing so that when you use you do not get an error

Could not find a declaration file for module '@sanity/block-content-to-markdown'. '/Users/afa/web/codingcatdev/codingcat.dev/node_modules/.pnpm/@[email protected]/node_modules/@sanity/block-content-to-markdown/lib/toMarkdown.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/sanity__block-content-to-markdown` if it exists or add a new declaration (.d.ts) file containing `declare module '@sanity/block-content-to-markdown';`ts(7016)

codercatdev avatar Jun 25 '24 17:06 codercatdev