|
1 |
| -// export * from 'unplugin-icons/types/svelte'; |
| 1 | +import 'unplugin-icons/types/svelte'; |
2 | 2 |
|
3 | 3 | // See https://kit.svelte.dev/docs/types#app
|
4 | 4 | // for information about these interfaces
|
5 | 5 | // and what to do when importing types
|
6 |
| -declare namespace App { |
7 |
| - // interface Error {} |
8 |
| - // interface Locals {} |
9 |
| - |
10 |
| - interface PageData { |
11 |
| - meta: { |
12 |
| - title?: string; |
13 |
| - description?: string; |
14 |
| - source?: string; |
15 |
| - pageSource?: string; |
16 |
| - api?: SveldJson; |
17 |
| - features?: string[]; |
18 |
| - related?: string[]; |
19 |
| - hideUsage?: boolean; |
20 |
| - hideTableOfContents?: boolean; |
21 |
| - status?: string; |
22 |
| - }; |
| 6 | +declare global { |
| 7 | + namespace App { |
| 8 | + // interface Error {} |
| 9 | + // interface Locals {} |
| 10 | + |
| 11 | + interface PageData { |
| 12 | + meta: { |
| 13 | + title?: string; |
| 14 | + description?: string; |
| 15 | + source?: string; |
| 16 | + pageSource?: string; |
| 17 | + api?: SveldJson; |
| 18 | + features?: string[]; |
| 19 | + related?: string[]; |
| 20 | + hideUsage?: boolean; |
| 21 | + hideTableOfContents?: boolean; |
| 22 | + status?: string; |
| 23 | + }; |
| 24 | + } |
| 25 | + |
| 26 | + // interface PageState {} |
| 27 | + // interface Platform {} |
23 | 28 | }
|
24 | 29 |
|
25 |
| - // interface PageState {} |
26 |
| - // interface Platform {} |
27 |
| -} |
28 |
| - |
29 |
| -// TODO: Can this be referenced from `@layerstack/svelte-actions` types.d.ts without breaking other things? |
30 |
| -// https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/typescript.md |
31 |
| -declare namespace svelteHTML { |
32 |
| - interface HTMLAttributes<T> { |
33 |
| - // use:intersection |
34 |
| - 'on:intersecting'?: (event: CustomEvent<IntersectionObserverEntry>) => void; |
| 30 | + // TODO: Can this be referenced from `@layerstack/svelte-actions` types.d.ts without breaking other things? |
| 31 | + // https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/typescript.md |
| 32 | + namespace svelteHTML { |
| 33 | + interface HTMLAttributes<T> { |
| 34 | + // use:intersection |
| 35 | + 'on:intersecting'?: (event: CustomEvent<IntersectionObserverEntry>) => void; |
35 | 36 |
|
36 |
| - // use:mutate |
37 |
| - 'on:mutate'?: (event: CustomEvent<MutationRecord[]>) => void; |
| 37 | + // use:mutate |
| 38 | + 'on:mutate'?: (event: CustomEvent<MutationRecord[]>) => void; |
38 | 39 |
|
39 |
| - // use:movable |
40 |
| - 'on:movestart'?: (event: CustomEvent<{ x: number; y: number }>) => void; |
41 |
| - 'on:move'?: (event: CustomEvent<{ x: number; y: number; dx: number; dy: number }>) => void; |
42 |
| - 'on:moveend'?: (event: CustomEvent<{ x: number; y: number }>) => void; |
| 40 | + // use:movable |
| 41 | + 'on:movestart'?: (event: CustomEvent<{ x: number; y: number }>) => void; |
| 42 | + 'on:move'?: (event: CustomEvent<{ x: number; y: number; dx: number; dy: number }>) => void; |
| 43 | + 'on:moveend'?: (event: CustomEvent<{ x: number; y: number }>) => void; |
43 | 44 |
|
44 |
| - // use:popover |
45 |
| - 'on:clickOutside'?: (event: CustomEvent) => void; |
| 45 | + // use:popover |
| 46 | + 'on:clickOutside'?: (event: CustomEvent) => void; |
46 | 47 |
|
47 |
| - // use:overflow |
48 |
| - 'on:overflow'?: (event: CustomEvent<{ overflowX: number; overflowY: number }>) => void; |
| 48 | + // use:overflow |
| 49 | + 'on:overflow'?: (event: CustomEvent<{ overflowX: number; overflowY: number }>) => void; |
49 | 50 |
|
50 |
| - // use:longpress |
51 |
| - 'on:longpress'?: (event: CustomEvent) => void; |
| 51 | + // use:longpress |
| 52 | + 'on:longpress'?: (event: CustomEvent) => void; |
| 53 | + } |
52 | 54 | }
|
53 | 55 | }
|
0 commit comments