Skip to content

Commit 5d62591

Browse files
committed
docs: fixed typos in jsdocs (#4421).
1 parent 85a039f commit 5d62591

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src.ts/utils/errors.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type { FetchRequest, FetchResponse } from "./fetch.js";
2020

2121
/**
2222
* An error may contain additional properties, but those must not
23-
* conflict with any impliciat properties.
23+
* conflict with any implicit properties.
2424
*/
2525
export type ErrorInfo<T> = Omit<T, "code" | "name" | "message" | "shortMessage"> & { shortMessage?: string };
2626

@@ -67,7 +67,7 @@ function stringify(value: any): any {
6767

6868
/**
6969
* All errors emitted by ethers have an **ErrorCode** to help
70-
* identify and coalesce errors to simplfy programatic analysis.
70+
* identify and coalesce errors to simplify programmatic analysis.
7171
*
7272
* Each **ErrorCode** is the %%code%% proerty of a coresponding
7373
* [[EthersError]].
@@ -202,7 +202,7 @@ export interface NotImplementedError extends EthersError<"NOT_IMPLEMENTED"> {
202202
/**
203203
* This Error indicates that the attempted operation is not supported.
204204
*
205-
* This could range from a specifc JSON-RPC end-point not supporting
205+
* This could range from a specific JSON-RPC end-point not supporting
206206
* a feature to a specific configuration of an object prohibiting the
207207
* operation.
208208
*
@@ -217,7 +217,7 @@ export interface UnsupportedOperationError extends EthersError<"UNSUPPORTED_OPER
217217
}
218218

219219
/**
220-
* This Error indicates a proplem connecting to a network.
220+
* This Error indicates a problem connecting to a network.
221221
*/
222222
export interface NetworkError extends EthersError<"NETWORK_ERROR"> {
223223
/**
@@ -269,7 +269,7 @@ export interface TimeoutError extends EthersError<"TIMEOUT"> {
269269

270270
/**
271271
* This Error indicates that a provided set of data cannot
272-
* be correctly interpretted.
272+
* be correctly interpreted.
273273
*/
274274
export interface BadDataError extends EthersError<"BAD_DATA"> {
275275
/**
@@ -617,7 +617,7 @@ export type CodedEthersError<T> =
617617
* Returns true if the %%error%% matches an error thrown by ethers
618618
* that matches the error %%code%%.
619619
*
620-
* In TypeScript envornoments, this can be used to check that %%error%%
620+
* In TypeScript environments, this can be used to check that %%error%%
621621
* matches an EthersError type, which means the expected properties will
622622
* be set.
623623
*
@@ -645,13 +645,13 @@ export function isCallException(error: any): error is CallExceptionError {
645645

646646
/**
647647
* Returns a new Error configured to the format ethers emits errors, with
648-
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
648+
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
649649
* for the corresponding EthersError.
650650
*
651651
* Each error in ethers includes the version of ethers, a
652-
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
653-
* required properties. The error message will also include the %%meeage%%,
654-
* ethers version, %%code%% and all aditional properties, serialized.
652+
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
653+
* required properties. The error message will also include the %%message%%,
654+
* ethers version, %%code%% and all additional properties, serialized.
655655
*/
656656
export function makeError<K extends ErrorCode, T extends CodedEthersError<K>>(message: string, code: K, info?: ErrorInfo<T>): T {
657657
let shortMessage = message;

0 commit comments

Comments
 (0)