Skip to content

Commit

Permalink
add tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gmakarov committed Feb 5, 2023
1 parent e44072f commit 12f8548
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ getByPath(obj, 'a.b.c'); // `c` property does not exist
| `Path<T>` | converts nested structure `T` into a string representation of the paths to its properties |
| `PathValue<T, TPath>` | returns the type of the value at the specified path |


```ts
const obj = {
a: {
Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"jest": "^29.3.1",
"microbundle": "^0.15.1",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5"
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
},
"keywords": [
"dot",
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noUncheckedIndexedAccess": true,
},
"exclude": ["node_modules", "dist"],
}

0 comments on commit 12f8548

Please sign in to comment.