Skip to content

Commit

Permalink
refactor: use import type for types
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed May 16, 2022
1 parent 795c975 commit 7599e7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/App/index.tsx
@@ -1,4 +1,5 @@
import { FC, useState } from "react";
import type { FC } from "react";
import { useState } from "react";

import GitHubCorner from "../GitHubCorner";
import Slider from "../Slider";
Expand Down
3 changes: 2 additions & 1 deletion src/useLatest.ts
@@ -1,4 +1,5 @@
import { RefObject, useRef } from "react";
import type { RefObject } from "react";
import { useRef } from "react";

export default <T>(val: T): RefObject<T> => {
const ref = useRef(val);
Expand Down

0 comments on commit 7599e7b

Please sign in to comment.