@slidev/types 0.48.0-beta.10 → 0.48.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.d.ts +51 -3
  2. package/package.json +1 -1
package/client.d.ts CHANGED
@@ -1,5 +1,53 @@
1
- declare module '/@slidev/configs' {
2
- import { SlidevConfig } from './types'
1
+ // Types for virtual modules
2
+ // `#slidev/*` is an alias for `/@slidev/*`, because TS will consider `/@slidev/*` as an absolute path that we can't override
3
3
 
4
- export default SlidevConfig
4
+ declare module '#slidev/configs' {
5
+ import type { SlidevConfig } from '@slidev/types'
6
+
7
+ const configs: SlidevConfig
8
+ export default configs
9
+ }
10
+
11
+ declare module '#slidev/global-components/top' {
12
+ import type { ComponentOptions } from 'vue'
13
+
14
+ const component: ComponentOptions
15
+ export default component
16
+ }
17
+
18
+ declare module '#slidev/global-components/bottom' {
19
+ import type { ComponentOptions } from 'vue'
20
+
21
+ const component: ComponentOptions
22
+ export default component
23
+ }
24
+
25
+ declare module '#slidev/routes' {
26
+ import type { RouteRecordRaw } from 'vue-router'
27
+
28
+ const rawRoutes: RouteRecordRaw[]
29
+ const redirects: RouteRecordRaw[]
30
+ export { rawRoutes, redirects }
31
+ }
32
+
33
+ declare module '@slidev/titles.md' {
34
+ import type { ComponentOptions } from 'vue'
35
+
36
+ const component: ComponentOptions
37
+ export default component
38
+ }
39
+
40
+ declare module '#slidev/custom-nav-controls' {
41
+ import type { ComponentOptions } from 'vue'
42
+
43
+ const component: ComponentOptions
44
+ export default component
45
+ }
46
+
47
+ declare module '#slidev/styles' {
48
+ // side-effects only
49
+ }
50
+
51
+ declare module '#slidev/monaco-types' {
52
+ // side-effects only
5
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.48.0-beta.10",
3
+ "version": "0.48.0-beta.12",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",