This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
typings.d.ts
61 lines (50 loc) · 1.87 KB
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
declare module 'fastify-no-additional-properties'
declare module 'fastify-error-page'
declare module 'fastify-disablecache' {
import disableCache from 'fastify-disablecache'
export default disableCache
}
declare module 'fastify-api-logger'
declare module 'diceware' {
export default function (numwords?: number): string
}
/*****
The splide carousel library imports ./SplideSlide/SplideSlide.vue, which tsc
doesnt understand. Found this hack here: https://github.com/vuejs/vue/issues/5298#issuecomment-611345474
whith this followup: https://github.com/vuejs/vue/issues/5298#issuecomment-761577986.
*****/
declare module '*.vue' {
import type { defineComponent } from 'vue'
const component: ReturnType<typeof defineComponent>
export default component
}
declare module 'prettify-time' {
export default function (number): string
}
declare module 'cpu-stat' {
function usagePercent(callback: (error: Error, percent: number, seconds: number) => void): void
export { usagePercent }
}
declare module 'vue-good-table-next' {
import { VueGoodTable } from 'vue-good-table-next'
export default VueGoodTable
}
declare module 'vue3-json-viewer' {
import JsonViewer from 'vue3-json-viewer'
export default JsonViewer
}
declare module 'dns-cache' {
export default function (ttl: number): void
}
declare module 'deep-filter' {
function recursiveObjFilter(
obj: Record<string, unknown>,
callback: (value: any, prop: number | string) => boolean
): Record<string, unknown>
export default recursiveObjFilter
}
declare module 'node-recursive-directory' {
// prettier-ignore
export default function (dir: string, asObject: boolean): Promise<{ fullpath: string; filepath: string; filename: string; dirname: string }[]>; // eslint-disable-line import/export,@typescript-eslint/semi
export default function (dir: string): Promise<string[]> // eslint-disable-line import/export
}