Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 31, 2024
1 parent 0c604de commit a9d4544
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 адаптеры
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const frameworks: Record<
*
* const app = new Hono();
*
* app.get("/", webhookHandler("hono"));
* app.get("/", webhookHandler(ткасса, "hono"));
* ```
*/
export function webhookHandler<Framework extends keyof typeof frameworks>(
Expand Down

0 comments on commit a9d4544

Please sign in to comment.