Skip to content

Commit 9b658af

Browse files
committed
why was i putting this off
1 parent 8ce6954 commit 9b658af

4 files changed

Lines changed: 72 additions & 72 deletions

File tree

bun.lock

Lines changed: 43 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 25 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"shiki": "^3.8.1",
4747
"sk-seo": "^0.5.4",
4848
"tailwindcss": "^4.1.11",
49-
"unplugin-icons": "^22.1.0"
49+
"unplugin-icons": "^22.2.0"
5050
}
5151
}

src/lib/search.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import FlexSearch from "flexsearch"; // types are borked rn
1+
import { Index } from "flexsearch";
22
import { stripHtml } from "string-strip-html";
33

4-
let index: FlexSearch.Index;
4+
let index: Index;
55
let posts: Page[] = [];
66

77
// This function creates the search index from the given pages.
88
export function createSearchIndex(pages: Page[]) {
9-
index = new FlexSearch.Index({ tokenize: "forward" });
9+
index = new Index({ tokenize: "forward" });
1010

1111
for (let i = 0; i < pages.length; i++) {
1212
const page = pages[i];

0 commit comments

Comments
 (0)