diff --git a/lib/mdn/checkPartialSupport.js b/lib/mdn/checkPartialSupport.js index 484bd0a..b41c9a9 100644 --- a/lib/mdn/checkPartialSupport.js +++ b/lib/mdn/checkPartialSupport.js @@ -7,6 +7,7 @@ import { formatBrowserName } from '../../utils/util.js'; import { convertMdnSupportToBrowsers } from './convertMdnBrowser.js'; const require = createRequire(import.meta.url); +/** @type {import('@mdn/browser-compat-data').CompatData} */ const bcd = require('@mdn/browser-compat-data'); /* browser compat data is littered with dangleys */ diff --git a/tsconfig.json b/tsconfig.json index 92123ac..5be08c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "useUnknownInCatchVariables": false, "outDir": "types", "removeComments": false, + "resolveJsonModule": true }, - "include": ["exports/**/*.js", "lib/**/*.js", "data/**/*.js"], -} \ No newline at end of file + "include": ["exports/**/*.js", "lib/**/*.js", "data/**/*.js"] +}