Skip to content

Commit

Permalink
refactor: ♻️ 添加tsx类型声明
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-czy committed Dec 19, 2023
1 parent adb859a commit 7c7ad53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ declare interface ViteEnv {
VITE_PROXY: [string, string][];
VITE_BUILD_GZIP: boolean;
}

declare module "*.tsx" {
import { FC } from "react";
export default FC;
}

0 comments on commit 7c7ad53

Please sign in to comment.