Skip to content

Commit bf477a0

Browse files
committed
chore(ses): rename SesError -> CodableError
has nothing to do with fish
1 parent e37784d commit bf477a0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/ses/types.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export type GenericErrorConstructor =
313313
/**
314314
* An `Error` with a `code` property.
315315
*/
316-
export type SesError = Error & { code?: string };
316+
export type CodableError = Error & { code?: string };
317317

318318
/**
319319
* To make an `assert` which terminates some larger unit of computation
@@ -322,7 +322,7 @@ export type SesError = Error & { code?: string };
322322
* If possible, the callback should also report its `reason` parameter as
323323
* the alleged reason for the termination.
324324
*/
325-
export type Raise = (reason: SesError) => void;
325+
export type Raise = (reason: CodableError) => void;
326326

327327
/**
328328
* Makes and returns an `assert` function object that shares the
@@ -406,13 +406,13 @@ export interface AssertionUtilities {
406406
/** An optional alternate error constructor to use */
407407
errConstructor?: GenericErrorConstructor,
408408
options?: AssertMakeErrorOptions,
409-
): SesError;
409+
): CodableError;
410410

411411
/**
412412
* Associate `details` with `error`, potentially to be logged by an associated
413413
* console for providing extra information about the error.
414414
*/
415-
note(error: SesError, details: Details): void;
415+
note(error: CodableError, details: Details): void;
416416

417417
/**
418418
* Use as a template literal tag to create an opaque {@link DetailsToken} for

packages/ses/types.test-d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @endo/no-polymorphic-call, import/no-extraneous-dependencies, no-restricted-globals, no-underscore-dangle */
22
import { expectType } from 'tsd';
3-
import type { Assert, SesError } from 'ses';
3+
import type { Assert, CodableError } from 'ses';
44

55
// Lockdown
66

@@ -214,11 +214,11 @@ X`canst thou string?`.toString();
214214

215215
const stringable = q(null);
216216

217-
expectType<SesError>(makeError(X`details are ${q(stringable)}`));
217+
expectType<CodableError>(makeError(X`details are ${q(stringable)}`));
218218

219-
expectType<SesError>(makeError(X`details are ${stringable}`, TypeError));
219+
expectType<CodableError>(makeError(X`details are ${stringable}`, TypeError));
220220

221-
expectType<SesError>(
221+
expectType<CodableError>(
222222
makeError(X`details are ${stringable}`, TypeError, {
223223
errorName: 'Nom de plum',
224224
}),

0 commit comments

Comments
 (0)