Skip to content

Commit f1c49bb

Browse files
committed
Enable verbatimModuleSyntax
1 parent 703cd57 commit f1c49bb

File tree

10 files changed

+16
-345
lines changed

10 files changed

+16
-345
lines changed

package-lock.json

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

src/react/components/TransitionGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Children,
66
useEffect,
77
useState,
8-
ReactElement,
8+
type ReactElement,
99
useCallback,
1010
} from "react";
1111
import { noop } from "../../core/utils.js";

src/react/hooks/useAnimation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect } from "react";
22
import { assign, getStyle, toArray } from "../../core/utils.js";
33
import {
4-
PlayOptions,
4+
type PlayOptions,
55
_cancel,
66
_waitFor,
77
_finish,
@@ -10,17 +10,17 @@ import {
1010
_reverse,
1111
_setRate,
1212
_setTime,
13-
WaitingAnimationEventName,
14-
TypedKeyframe,
15-
GetKeyframeFunction,
13+
type WaitingAnimationEventName,
14+
type TypedKeyframe,
15+
type GetKeyframeFunction,
1616
} from "../../core/waapi.js";
1717
import { useStatic } from "./useStatic.js";
1818
import { useLatestRef } from "./useLatestRef.js";
19-
import { AnimationDefinition } from "../types/index.js";
19+
import type { AnimationDefinition } from "../types/index.js";
2020
import {
2121
deleteAnimation,
2222
getAnimation,
23-
AnimationObject,
23+
type AnimationObject,
2424
initAnimation,
2525
} from "./state.js";
2626

src/react/hooks/useAnimationFunction.ssr.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
66
import { renderToString, renderToStaticMarkup } from "react-dom/server";
77
import {
88
useAnimationFunction,
9-
ComputedTimingContext,
9+
type ComputedTimingContext,
1010
} from "./useAnimationFunction.js";
1111

1212
describe("SSR", () => {

src/react/hooks/useAnimationFunction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect } from "react";
22
import { isSameObject } from "../../core/utils.js";
33
import {
4-
TypedKeyframeEffectOptions,
4+
type TypedKeyframeEffectOptions,
55
createAnimation,
66
_cancel,
77
_waitFor,
@@ -11,7 +11,7 @@ import {
1111
_reverse,
1212
_setRate,
1313
_setTime,
14-
WaitingAnimationEventName,
14+
type WaitingAnimationEventName,
1515
} from "../../core/waapi.js";
1616
import type { BaseAnimationHandle } from "./useAnimation.js";
1717
import { useStatic } from "./useStatic.js";

src/react/hooks/useScrollTimeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assign } from "../../core/utils.js";
2-
import { ScrollTimelineAxis, TimelineDefinition } from "../types/index.js";
2+
import type { ScrollTimelineAxis, TimelineDefinition } from "../types/index.js";
33
import { SCROLL_TIMELINE } from "../types/internal.js";
44
import { useLatestRef } from "./useLatestRef.js";
55
import { useStatic } from "./useStatic.js";

src/react/hooks/useTransitionAnimation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import {
44
EXITING,
55
NOT_EXIT,
66
TransitionNotifierContext,
7-
TransitionState,
7+
type TransitionState,
88
TransitionStateContext,
99
} from "../components/TransitionGroup.js";
10-
import { AnimationHandle, useAnimation } from "./useAnimation.js";
10+
import { type AnimationHandle, useAnimation } from "./useAnimation.js";
1111
import { getKeys, noop } from "../../core/utils.js";
1212
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect.js";
1313
import type {

src/react/hooks/useViewTimeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assign } from "../../core/utils.js";
2-
import {
2+
import type {
33
ScrollTimelineAxis,
44
TimelineDefinition,
55
ViewTimelineInset,

src/react/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
GetKeyframeFunction,
33
TypedKeyframe,
44
TypedKeyframeEffectOptions,

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"allowUnreachableCode": false,
2525
"allowUnusedLabels": false,
2626
"exactOptionalPropertyTypes": true,
27+
"verbatimModuleSyntax": true,
2728
"stripInternal": true
2829
},
2930
"include": ["src"],

0 commit comments

Comments
 (0)