From 0f5c09c7e0d571ca101701a01f3b472da4050874 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 4 Nov 2022 07:40:49 -0700 Subject: [PATCH] update docs --- docs/content/1.get-started/1.installation.md | 48 -------------------- playground/tsconfig.json | 5 +- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/docs/content/1.get-started/1.installation.md b/docs/content/1.get-started/1.installation.md index 139ca26..ea9ae63 100644 --- a/docs/content/1.get-started/1.installation.md +++ b/docs/content/1.get-started/1.installation.md @@ -45,54 +45,6 @@ export default defineNuxtConfig({ }) ``` -## 3. Enable strict mode - -If you want to use Zod for input validation, make sure you have enabled strict mode: - -::code-group - -```json [tsconfig.json] -{ - "extends": "./.nuxt/tsconfig.json", - "compilerOptions": { - "strict": true - } -} -``` - -```ts [nuxt.config.ts] -export default defineNuxtConfig({ - typescript: { - strict: true - } -}) -``` - -:: - -If strict mode is too much, at least enable `strictNullChecks`: - -::code-group - -```json [tsconfig.json] -{ - "extends": "./.nuxt/tsconfig.json", - "compilerOptions": { - "strictNullChecks": true - } -} -``` - -```ts [nuxt.config.ts] -export default defineNuxtConfig({ - typescript: { - tsConfig: { - strictNullChecks: true - } - } -}) -``` - :: ## Next Steps diff --git a/playground/tsconfig.json b/playground/tsconfig.json index 792efad..a7bfa18 100644 --- a/playground/tsconfig.json +++ b/playground/tsconfig.json @@ -1,7 +1,4 @@ { // https://v3.nuxtjs.org/concepts/typescript - "extends": "./.nuxt/tsconfig.json", - "compilerOptions": { - "strict": true - } + "extends": "./.nuxt/tsconfig.json" }