├── .github ├── release-drafter.yml └── workflows │ ├── pr.yml │ ├── publish.yml │ └── version-check.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── __tests__ ├── client.test.ts └── server.test.ts ├── example ├── client.ts ├── pages │ └── api │ │ ├── sample.ts │ │ ├── sample │ │ └── [id].ts │ │ ├── sample2.ts │ │ └── sample3 │ │ └── index.ts └── tsconfig.json ├── package.json ├── screenshot.png ├── src ├── client.ts ├── error.ts ├── index.ts ├── react-query.ts ├── router.ts ├── swr.ts ├── type.ts └── validation.ts ├── tools ├── index.js ├── src │ ├── command.ts │ ├── config.ts │ ├── createModuleShim │ │ ├── createImportDeclarations.ts │ │ └── createShim.ts │ ├── createProgram │ │ ├── createConfigFileHost.ts │ │ └── index.ts │ ├── emitFile.ts │ ├── emitModulesShim.ts │ ├── index.ts │ ├── mapFileInfo.ts │ ├── printList.ts │ └── types.ts └── tsconfig.json ├── tsconfig.json ├── utility └── version-check.js ├── vitest.config.ts └── yarn.lock /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.github/workflows/pr.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/version-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.github/workflows/version-check.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/client.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/__tests__/client.test.ts -------------------------------------------------------------------------------- /__tests__/server.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/__tests__/server.test.ts -------------------------------------------------------------------------------- /example/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/client.ts -------------------------------------------------------------------------------- /example/pages/api/sample.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/pages/api/sample.ts -------------------------------------------------------------------------------- /example/pages/api/sample/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/pages/api/sample/[id].ts -------------------------------------------------------------------------------- /example/pages/api/sample2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/pages/api/sample2.ts -------------------------------------------------------------------------------- /example/pages/api/sample3/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/pages/api/sample3/index.ts -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/package.json -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/screenshot.png -------------------------------------------------------------------------------- /src/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/client.ts -------------------------------------------------------------------------------- /src/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/error.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/react-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/react-query.ts -------------------------------------------------------------------------------- /src/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/router.ts -------------------------------------------------------------------------------- /src/swr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/swr.ts -------------------------------------------------------------------------------- /src/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/type.ts -------------------------------------------------------------------------------- /src/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/src/validation.ts -------------------------------------------------------------------------------- /tools/index.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('./lib/command.js'); 3 | -------------------------------------------------------------------------------- /tools/src/command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/command.ts -------------------------------------------------------------------------------- /tools/src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/config.ts -------------------------------------------------------------------------------- /tools/src/createModuleShim/createImportDeclarations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/createModuleShim/createImportDeclarations.ts -------------------------------------------------------------------------------- /tools/src/createModuleShim/createShim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/createModuleShim/createShim.ts -------------------------------------------------------------------------------- /tools/src/createProgram/createConfigFileHost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/createProgram/createConfigFileHost.ts -------------------------------------------------------------------------------- /tools/src/createProgram/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/createProgram/index.ts -------------------------------------------------------------------------------- /tools/src/emitFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/emitFile.ts -------------------------------------------------------------------------------- /tools/src/emitModulesShim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/emitModulesShim.ts -------------------------------------------------------------------------------- /tools/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/index.ts -------------------------------------------------------------------------------- /tools/src/mapFileInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/mapFileInfo.ts -------------------------------------------------------------------------------- /tools/src/printList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/printList.ts -------------------------------------------------------------------------------- /tools/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/src/types.ts -------------------------------------------------------------------------------- /tools/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tools/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utility/version-check.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/utility/version-check.js -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steelydylan/next-zod-router/HEAD/yarn.lock --------------------------------------------------------------------------------