From 71161bac7972b3380ee8fd9082a2e60ac005e062 Mon Sep 17 00:00:00 2001 From: elquid Date: Wed, 21 Feb 2024 21:23:32 +0300 Subject: [PATCH] fix: context binding while processing errors --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 92c4e18..1a9f5ad 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -295,7 +295,7 @@ See more help with --help`, }; } - errors.map(this.warn); + errors.map(this.warn.bind(this)); if (!Flags.skipValidation) { const validatorSpinner = ora("Validating generated types").start();