Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyTM committed Sep 20, 2023
1 parent 4a59576 commit 298c9f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/errors-list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export const ERROR_PREFIX = "IGN";

/**
* ErrorDescriptor is a type that describes an error.
* It's used to generate error codes and messages.
*
* @beta
*/
export interface ErrorDescriptor {
number: number;
// Message can use templates. See applyErrorMessageTemplate
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export class IgnitionError extends Error {
* - If a variable is not present in the template, but present in the values
* object, an error is thrown.
*
* @param template The template string.
* @param values A map of variable names to their values.
* @param template - The template string.
* @param values - A map of variable names to their values.
*
* @beta
*/
export function applyErrorMessageTemplate(
template: string,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { buildModule } from "./build-module";
export { deploy } from "./deploy";
export * from "./errors";
export { ErrorDescriptor } from "./errors-list";
export { IgnitionModuleSerializer } from "./ignition-module-serializer";
export { formatSolidityParameter } from "./internal/formatters";
export * from "./type-guards";
Expand Down

0 comments on commit 298c9f5

Please sign in to comment.