Skip to content

Commit

Permalink
build: make ts more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
lwhiteley committed Jan 6, 2024
1 parent 62a1a4e commit 3325d63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/typescript-001/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function App() {
change {history.index + 1} / {history.nodes.length}
</span>
<span>|</span>
<span>{getCurrentChangeDate().toISOString()}</span>
<span>{getCurrentChangeDate()?.toISOString()}</span>
</div>
<div className="editor">
<textarea value={value.text} rows={4} onChange={update} />
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"strict": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"baseUrl": ".",
"paths": {
"valtio-history": ["packages/history-utility/src/index.ts"]
Expand Down

0 comments on commit 3325d63

Please sign in to comment.