From 24b80089b208199a286aba8285be5708b406e205 Mon Sep 17 00:00:00 2001 From: -akku- <151517253+akku1139@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:38:38 +0900 Subject: [PATCH] fix: indent --- packages/typia-validator/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/typia-validator/README.md b/packages/typia-validator/README.md index b6482f88..4e0f6831 100644 --- a/packages/typia-validator/README.md +++ b/packages/typia-validator/README.md @@ -9,19 +9,19 @@ import typia, { tags } from 'typia' import { typiaValidator } from '@hono/typia-validator' interface Author { - name: string - age: number & tags.Type<'uint32'> & tags.Minimum<20> & tags.ExclusiveMaximum<100> - } + name: string + age: number & tags.Type<'uint32'> & tags.Minimum<20> & tags.ExclusiveMaximum<100> +} - const validate = typia.createValidate() +const validate = typia.createValidate() - const route = app.post('/author', typiaValidator('json', validate), (c) => { - const data = c.req.valid('json') - return c.json({ - success: true, - message: `${data.name} is ${data.age}`, - }) +const route = app.post('/author', typiaValidator('json', validate), (c) => { + const data = c.req.valid('json') + return c.json({ + success: true, + message: `${data.name} is ${data.age}`, }) +}) ``` Hook: