Skip to content

Commit 84eec7d

Browse files
committed
refactor(type): consistent-type-imports
1 parent 7ffe2a0 commit 84eec7d

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

src/useDeepEffect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useEffect, EffectCallback, DependencyList } from "react";
1+
import type { EffectCallback, DependencyList } from "react";
2+
import { useEffect } from "react";
23
import useDeepCompareCache from "./useDeepCompareCache";
34

45
/**

src/useLoadImg.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
import React, {
2-
CSSProperties,
3-
useState,
4-
useEffect,
5-
useMemo,
6-
useCallback,
7-
} from "react";
1+
import type { CSSProperties } from "react";
2+
import React, { useState, useEffect, useMemo, useCallback } from "react";
83
import useDeepCompareCache from "./useDeepCompareCache";
94

105
export type EImgState = "loading" | "done" | "error" | "idle";

src/useThrottle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {
2-
useThrottle,
1+
import type {
32
ThrottleOptions,
43
ControlFunctions,
54
} from "@react-cmpt/use-throttle";
5+
import { useThrottle } from "@react-cmpt/use-throttle";
66

77
export type { ThrottleOptions, ControlFunctions };
88

src/useThrottleFn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {
2-
useThrottleFn,
1+
import type {
32
ThrottleFnOptions,
43
ThrottleReturnResult,
54
} from "@react-cmpt/use-throttle";
5+
import { useThrottleFn } from "@react-cmpt/use-throttle";
66

77
export type { ThrottleFnOptions, ThrottleReturnResult };
88

src/useUpdateEffect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useEffect, EffectCallback, DependencyList, useRef } from "react";
1+
import type { EffectCallback, DependencyList } from "react";
2+
import { useEffect, useRef } from "react";
23

34
/**
45
* useUpdateEffect

0 commit comments

Comments
 (0)