Update tsconfig-paths.md (#5593)

Change string:string mapping in the docs to match the expected string:array[string] mapping. 

See: https://www.typescriptlang.org/tsconfig#paths
This commit is contained in:
Ethan Steere
2023-09-17 00:44:02 -04:00
committed by GitHub
parent eca93d4257
commit 80e1f32ca1

View File

@@ -8,8 +8,8 @@ Bun reads the `paths` field in your `tsconfig.json` to re-write import paths. Th
{
"compilerOptions": {
"paths": {
"my-custom-name": "zod",
"@components/*": "./src/components/*"
"my-custom-name": ["zod"],
"@components/*": ["./src/components/*"]
}
}
}