mirror of
https://github.com/quartz-community/search.git
synced 2026-07-22 02:50:25 +00:00
fix: add FlexSearch types to resolve ts-expect-error in host repos
- Add @types/flexsearch devDependency for proper type checking - Remove @ts-expect-error directive now that types are available - Fixes unused directive error when plugin is installed in Quartz
This commit is contained in:
parent
28eea49e76
commit
1e00f2e97e
3 changed files with 10 additions and 1 deletions
9
package-lock.json
generated
9
package-lock.json
generated
|
|
@ -13,6 +13,7 @@
|
|||
"@quartz-community/utils": "github:quartz-community/utils"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/flexsearch": "^0.7.6",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/node": "^24.10.0",
|
||||
|
|
@ -1086,6 +1087,13 @@
|
|||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/flexsearch": {
|
||||
"version": "0.7.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/flexsearch/-/flexsearch-0.7.6.tgz",
|
||||
"integrity": "sha512-H5IXcRn96/gaDmo+rDl2aJuIJsob8dgOXDqf8K0t8rWZd1AFNaaspmRsElESiU+EWE33qfbFPgI0OC/B1g9FCA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/hast": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
|
||||
|
|
@ -3589,6 +3597,7 @@
|
|||
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.21.3",
|
||||
"postcss": "^8.4.43",
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@
|
|||
"@quartz-community/utils": "github:quartz-community/utils"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/flexsearch": "^0.7.6",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/node": "^24.10.0",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-expect-error flexsearch lacks types in this repo
|
||||
import FlexSearch from "flexsearch";
|
||||
import { removeAllChildren, normalizeRelativeURLs } from "@quartz-community/utils";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue