Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
fix: 解决第三方ts声明引入无效问题 - <microsoft/TypeScript#22217>
Browse files Browse the repository at this point in the history
  • Loading branch information
hokorixiao committed Jul 30, 2021
1 parent 788dd0c commit e30700d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
9 changes: 9 additions & 0 deletions frontend/src/@types/unist-util-find/index.d.ts
@@ -0,0 +1,9 @@
import { Node } from 'unist'
import { Text, Element, Comment } from 'hast'

declare const find: (
node: Element | Node,
condition: string | Object | Function,
) => Element | Text | Comment

export = find
2 changes: 1 addition & 1 deletion frontend/src/boot.ts
@@ -1,6 +1,6 @@
import { store } from '@/store'
import { ACCESS_TOKEN_NAME, BLOG_CONFIG, USER_INFO_NAME } from '@/utils/const'
import { Option } from 'utils/Request/Option'
import { Option } from './utils/Request/Option'

// 初始化store
const { dispatch } = store
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/components/Markdown/types/README.md

This file was deleted.

3 changes: 2 additions & 1 deletion frontend/tsconfig.json
Expand Up @@ -28,7 +28,8 @@
// "jsxImportSource": "hastscript",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
"@/*": ["./*"],
"*": ["./@types/*"]
}
},
"include": ["src"]
Expand Down

0 comments on commit e30700d

Please sign in to comment.