From aec95c4cd5104d184be42a8e7ae67cf6f8806dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Costa?= Date: Sun, 9 Jul 2023 16:05:45 -0700 Subject: [PATCH] Rename folder to adapters --- src/{adapter => adapters}/arktype.ts | 0 src/{adapter => adapters}/function.ts | 0 src/{adapter => adapters}/index.ts | 0 src/{adapter => adapters}/joi.ts | 0 src/{adapter => adapters}/runtypes.ts | 0 src/{adapter => adapters}/superstruct.ts | 0 src/{adapter => adapters}/typebox.ts | 0 src/{adapter => adapters}/yup.ts | 0 src/{adapter => adapters}/zod.ts | 0 src/index.ts | 6 +++--- 10 files changed, 3 insertions(+), 3 deletions(-) rename src/{adapter => adapters}/arktype.ts (100%) rename src/{adapter => adapters}/function.ts (100%) rename src/{adapter => adapters}/index.ts (100%) rename src/{adapter => adapters}/joi.ts (100%) rename src/{adapter => adapters}/runtypes.ts (100%) rename src/{adapter => adapters}/superstruct.ts (100%) rename src/{adapter => adapters}/typebox.ts (100%) rename src/{adapter => adapters}/yup.ts (100%) rename src/{adapter => adapters}/zod.ts (100%) diff --git a/src/adapter/arktype.ts b/src/adapters/arktype.ts similarity index 100% rename from src/adapter/arktype.ts rename to src/adapters/arktype.ts diff --git a/src/adapter/function.ts b/src/adapters/function.ts similarity index 100% rename from src/adapter/function.ts rename to src/adapters/function.ts diff --git a/src/adapter/index.ts b/src/adapters/index.ts similarity index 100% rename from src/adapter/index.ts rename to src/adapters/index.ts diff --git a/src/adapter/joi.ts b/src/adapters/joi.ts similarity index 100% rename from src/adapter/joi.ts rename to src/adapters/joi.ts diff --git a/src/adapter/runtypes.ts b/src/adapters/runtypes.ts similarity index 100% rename from src/adapter/runtypes.ts rename to src/adapters/runtypes.ts diff --git a/src/adapter/superstruct.ts b/src/adapters/superstruct.ts similarity index 100% rename from src/adapter/superstruct.ts rename to src/adapters/superstruct.ts diff --git a/src/adapter/typebox.ts b/src/adapters/typebox.ts similarity index 100% rename from src/adapter/typebox.ts rename to src/adapters/typebox.ts diff --git a/src/adapter/yup.ts b/src/adapters/yup.ts similarity index 100% rename from src/adapter/yup.ts rename to src/adapters/yup.ts diff --git a/src/adapter/zod.ts b/src/adapters/zod.ts similarity index 100% rename from src/adapter/zod.ts rename to src/adapters/zod.ts diff --git a/src/index.ts b/src/index.ts index 1b8b219..f01f4da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ -import type {Schema} from './adapter'; +import type {Schema} from './adapters'; -import {wrap} from './adapter'; +import {wrap} from './adapters'; -export type {Schema} from './adapter'; +export type {Schema} from './adapters'; export type Infer = TSchema extends Schema ? T : never; export async function assert(schema: Schema, data: unknown): Promise {