Skip to content

Commit b7ade00

Browse files
authored
Update packages/kit/src/core/sync/write_types/index.js
1 parent abcc708 commit b7ade00

File tree

1 file changed

+1
-1
lines changed
  • packages/kit/src/core/sync/write_types

1 file changed

+1
-1
lines changed

packages/kit/src/core/sync/write_types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ function update_types(config, routes, route, to_delete = new Set()) {
191191

192192
// returns the predicate of a matcher's type guard - or string if there is no type guard
193193
declarations.push(
194+
// TS complains on infer U, which seems weird, therefore ts-ignore it
194195
[
195-
'// TS complains on infer U, which seems weird',
196196
'// @ts-ignore',
197197
'type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;'
198198
].join('\n')

0 commit comments

Comments
 (0)