diff --git a/packages/static-module-record/src/static-module-record.js b/packages/static-module-record/src/static-module-record.js index 7a6b6893c5..f13ebd12bd 100644 --- a/packages/static-module-record/src/static-module-record.js +++ b/packages/static-module-record/src/static-module-record.js @@ -55,6 +55,9 @@ const analyzeModule = makeModuleAnalyzer(); * @property {SourceMapHook} [sourceMapHook] */ +// XXX implements import('ses').PrecompiledStaticModuleInterface but adding +// `@implements` errors that this isn't a class and `@returns` errors that +// there's no value returned. /** * StaticModuleRecord captures the effort of parsing and analyzing module text * so a cache of StaticModuleRecords may be shared by multiple Compartments. @@ -62,7 +65,6 @@ const analyzeModule = makeModuleAnalyzer(); * @class * @param {string} source * @param {string | Options} [opts] - * @returns {import('ses').PrecompiledStaticModuleInterface} */ export function StaticModuleRecord(source, opts = {}) { if (new.target === undefined) { diff --git a/packages/static-module-record/tsconfig.json b/packages/static-module-record/tsconfig.json index 4b1ba3e105..31f7c7cb09 100644 --- a/packages/static-module-record/tsconfig.json +++ b/packages/static-module-record/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.eslint-base.json", "compilerOptions": { - "checkJs": false + "checkJs": true }, "include": [ "*.js",