Skip to content

Commit

Permalink
chore(types): typecheck static-module-record
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Mar 16, 2024
1 parent 5405476 commit 2a541e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/static-module-record/src/static-module-record.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ 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.
*
* @class
* @param {string} source
* @param {string | Options} [opts]
* @returns {import('ses').PrecompiledStaticModuleInterface}
*/
export function StaticModuleRecord(source, opts = {}) {
if (new.target === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion packages/static-module-record/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.eslint-base.json",
"compilerOptions": {
"checkJs": false
"checkJs": true
},
"include": [
"*.js",
Expand Down

0 comments on commit 2a541e1

Please sign in to comment.