diff --git a/package-lock.json b/package-lock.json index e9bd567..217255f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index c777476..7929da7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/scripts/search.inline.ts b/src/components/scripts/search.inline.ts index 53cccbd..3e05a32 100644 --- a/src/components/scripts/search.inline.ts +++ b/src/components/scripts/search.inline.ts @@ -1,4 +1,3 @@ -// @ts-expect-error flexsearch lacks types in this repo import FlexSearch from "flexsearch"; import { removeAllChildren, normalizeRelativeURLs } from "@quartz-community/utils";