Skip to content

Commit

Permalink
fixup! types
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Feb 14, 2024
1 parent 35b9e10 commit c5265ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/common/throw-labeled.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { X, makeError, annotateError } from '@endo/errors';
*
* @param {Error} innerErr
* @param {string|number} label
* @param {import('ses/src/error/types.js').GenericErrorConstructor} [errConstructor]
* @param {import('ses/src/error/types.js').AssertMakeErrorOptions} [options]
* @param {import('ses').GenericErrorConstructor} [errConstructor]
* @param {import('ses').AssertMakeErrorOptions} [options]
* @returns {never}
*/
export const throwLabeled = (
Expand Down
4 changes: 4 additions & 0 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": "../../tsconfig.eslint-base.json",
"compilerOptions": {
"checkJs": true,
"maxNodeModuleJsDepth": 1,
},
"include": [
"*.js",
"*.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/pass-style/src/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { ownKeys } = Reflect;
const errorConstructors = new Map(
// Cast because otherwise TS is confused by AggregateError
// See https://github.com/endojs/endo/pull/2042#discussion_r1484933028
/** @type {Array<[string, import('ses/src/error/types.js').GenericErrorConstructor]>} */
/** @type {Array<[string, import('ses').GenericErrorConstructor]>} */
([
['Error', Error],
['EvalError', EvalError],
Expand All @@ -37,7 +37,7 @@ const errorConstructors = new Map(
* this non-uniformity.
*
* @param {string} name
* @returns {import('ses/src/error/types.js').GenericErrorConstructor | undefined}
* @returns {import('ses').GenericErrorConstructor | undefined}
*/
export const getErrorConstructor = name => errorConstructors.get(name);
harden(getErrorConstructor);
Expand Down
4 changes: 4 additions & 0 deletions packages/pass-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": "../../tsconfig.eslint-base.json",
"compilerOptions": {
"checkJs": true,
"maxNodeModuleJsDepth": 1,
},
"include": [
"*.js",
"*.ts",
Expand Down

0 comments on commit c5265ac

Please sign in to comment.