File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- // for highlighting
2
- const ts = String . raw
1
+ import { ts } from '../utils'
3
2
4
3
export function generateDTS ( {
5
4
routesModule,
Original file line number Diff line number Diff line change 1
1
// NOTE: this code needs to be generated because otherwise it doesn't go through transforms and `vue-router/auto-routes`
2
2
3
+ import { ts } from '../utils'
3
4
import type { ResolvedOptions } from '../options'
4
5
5
6
// cannot be resolved.
@@ -8,7 +9,7 @@ export function generateVueRouterProxy(
8
9
_options : ResolvedOptions ,
9
10
{ addPiniaColada } : { addPiniaColada : boolean }
10
11
) {
11
- return `
12
+ return ts `
12
13
import { createRouter as _createRouter } from 'vue-router'
13
14
14
15
export * from 'vue-router'
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ export type _Awaitable<T> = T | PromiseLike<T>
11
11
export type LiteralStringUnion < LiteralType , BaseType extends string = string > =
12
12
| LiteralType
13
13
| ( BaseType & Record < never , never > )
14
+ //
15
+ // for highlighting
16
+ export const ts = String . raw
You can’t perform that action at this time.
0 commit comments