From a9d454460bcb9e4470518327304108314e3fbe74 Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:28:59 +0300 Subject: [PATCH] chore: fix typos --- README.md | 2 +- scripts/generate.ts | 3 ++- src/webhook.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 05bd2ed..08cb17a 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ const ткасса = new TKassa(process.env.TERMINAL_KEY, process.env.PASSWORD); const app = new Hono(); -app.get("/", webhookHandler("hono")); +app.get("/", webhookHandler(ткасса, "hono")); ``` ### Поддерживаемые webhook адаптеры diff --git a/scripts/generate.ts b/scripts/generate.ts index 611ff02..426ff5b 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -44,11 +44,12 @@ schema.paths["/v2/Submit3DSAuthorization"].post.requestBody?.content[ // @ts-ignore const ast = await openapiTS(schema, { transform(schemaObject) { - // @ts-expect-error Какие-то пиколы у генератора типов с экзамплами по 3.1 спекеююю + // @ts-expect-error Какие-то приколы у генератора типов с экзамплами по 3.1 спеке if ("examples" in schemaObject && "default" in schemaObject.examples) schemaObject.example = schemaObject?.examples?.default; }, }); + const contents = astToString(ast); await Bun.write( diff --git a/src/webhook.ts b/src/webhook.ts index 12aae37..5524365 100644 --- a/src/webhook.ts +++ b/src/webhook.ts @@ -73,7 +73,7 @@ const frameworks: Record< * * const app = new Hono(); * - * app.get("/", webhookHandler("hono")); + * app.get("/", webhookHandler(ткасса, "hono")); * ``` */ export function webhookHandler(