Skip to content

Commit b6b9600

Browse files
Added the proper types to the _blog-api endpoint function
1 parent 1063504 commit b6b9600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/blog/_blog-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { readingTime } from '$lib/utils/reading-time';
1212
loadLanguages(['shell', 'markdown', 'json']);
1313

1414
const blogPath = './contents/blogs';
15-
const createAnchorAndFragment = (text) => {
15+
const createAnchorAndFragment = (text: string) => {
1616
const anchorRegExp = /{([^}]+)}/g;
1717
const anchorOverwrite = anchorRegExp.exec(text);
1818
const fragment = anchorOverwrite

0 commit comments

Comments
 (0)