Skip to content

Commit 4a325bb

Browse files
committed
Update typescript
1 parent 947fea2 commit 4a325bb

File tree

5 files changed

+71
-97
lines changed

5 files changed

+71
-97
lines changed

package-lock.json

Lines changed: 64 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
"size-limit": "^11.1.2",
7373
"storybook": "^8.4.0",
7474
"styled-components": "^6.0.7",
75-
"typedoc": "^0.27.0",
76-
"typedoc-plugin-markdown": "^3.16.0",
77-
"typescript": "^5.4.5",
75+
"typedoc": "^0.28.0",
76+
"typedoc-plugin-markdown": "^4.6.3",
77+
"typescript": "^5.8.3",
7878
"vitest": "^2.1.4",
7979
"wait-on": "^7.0.1",
8080
"web-animations-js": "^2.3.2",

src/react/hooks/useAnimation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const useAnimation = <Args = void>(
140140
clean();
141141
}
142142
},
143-
<BaseAnimationHandle<Args>>{
143+
{
144144
play: (...opts) => {
145145
const animation = init(((opts[0] || {}) as { args?: Args }).args!);
146146
if (animation) {
@@ -197,7 +197,7 @@ export const useAnimation = <Args = void>(
197197
() => externalHandle
198198
);
199199
},
200-
}
200+
} satisfies BaseAnimationHandle<Args>
201201
);
202202

203203
return [externalHandle, () => clean];

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"forceConsistentCasingInFileNames": true,
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
16+
"erasableSyntaxOnly": true,
1617
"noUnusedLocals": true,
1718
"noUnusedParameters": true,
1819
"noUncheckedIndexedAccess": true,

typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"sort": ["kind"],
88
"groupOrder": ["Function", "Interface", "TypeAlias"],
99
"githubPages": false,
10-
"entryDocument": "API.md",
10+
"entryFileName": "API.md",
1111
"hideBreadcrumbs": true
1212
}

0 commit comments

Comments
 (0)