Skip to content

Commit 792df18

Browse files
committed
Add verbatimModuleSyntax
1 parent b4a58cc commit 792df18

File tree

16 files changed

+7016
-3739
lines changed

16 files changed

+7016
-3739
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pnpm-lock.yaml
12
dist/
23
docs/.docusaurus

__tests__/types.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expectTypeOf, test } from "vitest";
2-
import {
2+
import type {
33
ConcatPaths,
44
ConcatSearchs,
55
GetAreaRoutes,

docs/pnpm-lock.yaml

Lines changed: 6992 additions & 3719 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/css/custom.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.08);
2020

2121
--ifm-navbar-link-hover-color: #8166c4;
22-
--ifm-font-family-base: Inter, system-ui, -apple-system, Segoe UI, Roboto,
23-
Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI",
24-
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
25-
"Segoe UI Symbol";
22+
--ifm-font-family-base:
23+
Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
24+
Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
25+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
2626
}
2727

2828
/* For readability concerns, you should choose a lighter palette in dark mode. */

example/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
<style>
99
body {
1010
margin: 0;
11-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
12-
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
13-
"Helvetica Neue", sans-serif;
11+
font-family:
12+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
13+
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
14+
sans-serif;
1415
-webkit-font-smoothing: antialiased;
1516
-moz-osx-font-smoothing: grayscale;
1617
}
1718

1819
code {
19-
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
20-
monospace;
20+
font-family:
21+
source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
2122
}
2223
</style>
2324
</head>

example/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"sourceMap": true,
1515
"strict": true,
1616
"stripInternal": true,
17+
"verbatimModuleSyntax": true,
1718

1819
// https://www.typescriptlang.org/tsconfig#Type_Checking_6248
1920
"allowUnreachableCode": false,

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ packages:
22
- example
33

44
onlyBuiltDependencies:
5-
- '@swc/core'
5+
- "@swc/core"
66
- esbuild

src/concatRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ensureSlashPrefix } from "./helpers";
2-
import { RouteObject } from "./types";
2+
import type { RouteObject } from "./types";
33

44
export const addPrefixOnNonEmpty = (value: string, prefix: string) =>
55
value === "" ? value : prefix + value;

src/createGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { concatRoutes } from "./concatRoutes";
22
import { parseRoute } from "./history";
3-
import { ConcatRoutes } from "./types";
3+
import type { ConcatRoutes } from "./types";
44

55
export const createGroup = <
66
GroupName extends string,

src/createRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
useGetUniversalLocation,
1313
} from "./history";
1414
import { getMatcher, match, matchToUrl } from "./matcher";
15-
import {
15+
import type {
1616
GetAreaRoutes,
1717
GetCreateURLFns,
1818
GetRoutesParams,

0 commit comments

Comments
 (0)