We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb96c60 commit 76d7665Copy full SHA for 76d7665
src/lib/utils/reading-time.d.ts
@@ -0,0 +1,11 @@
1
+declare module 'reading-time/lib/reading-time' {
2
+ function readingTime(text: string): {
3
+ text: string;
4
+ time: number;
5
+ minutes: number;
6
+ words: number;
7
+ speed: number;
8
+ };
9
+
10
+ export = readingTime;
11
+}
tsconfig.json
@@ -11,7 +11,8 @@
"strict": true,
12
"moduleResolution": "bundler",
13
"types": ["node"]
14
- }
+ },
15
+ "include": ["src/**/*"]
16
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
17
//
18
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
0 commit comments