-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dc135e
commit a0c3d63
Showing
13 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/065-types-you-dont-control/175-types-that-ship-with-libraries.explainer/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "exercise", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "tsc --watch" | ||
}, | ||
"dependencies": { | ||
"zod": "^3.22.2" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/065-types-you-dont-control/175-types-that-ship-with-libraries.explainer/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/065-types-you-dont-control/175-types-that-ship-with-libraries.explainer/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { z } from "zod"; | ||
|
||
const user = z.object({ | ||
name: z.string(), | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/065-types-you-dont-control/175-types-that-ship-with-libraries.explainer/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2022", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"isolatedModules": true, | ||
"moduleDetection": "force", | ||
"verbatimModuleSyntax": true | ||
}, | ||
} |
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions
12
...nt-control/176-declare-module-for-overriding-third-party-libraries.explainer/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "exercise", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "tsc --watch" | ||
}, | ||
"dependencies": { | ||
"zod": "^3.22.2" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...-control/176-declare-module-for-overriding-third-party-libraries.explainer/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...nt-control/176-declare-module-for-overriding-third-party-libraries.explainer/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { z } from "zod"; | ||
|
||
const user = z.object({ | ||
name: z.string(), | ||
}); |
3 changes: 3 additions & 0 deletions
3
...nt-control/176-declare-module-for-overriding-third-party-libraries.explainer/src/zod.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare module "zod" { | ||
const z: any; | ||
} |
15 changes: 15 additions & 0 deletions
15
...t-control/176-declare-module-for-overriding-third-party-libraries.explainer/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2022", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"isolatedModules": true, | ||
"moduleDetection": "force", | ||
"verbatimModuleSyntax": true | ||
}, | ||
} |
Empty file.
Empty file.