Skip to content

Commit fee6524

Browse files
authored
Merge pull request #56 from swup/fix/ts-errors
Fix TypeScript errors and warnings
2 parents 38b40ab + 6b9082c commit fee6524

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/inc/ParsedRule.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Swup, { matchPath, classify, Location } from 'swup';
2-
import type { Path } from 'swup';
1+
import { matchPath, classify, Location } from 'swup';
2+
import type { Swup, Path } from 'swup';
33
import type { Route } from './defs.js';
44
import { dedupe, queryFragmentElement } from './functions.js';
55
import Logger, { highlight } from './Logger.js';

src/inc/functions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Swup, { Location } from 'swup';
2-
import type { Visit, VisitScroll } from 'swup';
1+
import { Location } from 'swup';
2+
import type { Swup, Visit, VisitScroll } from 'swup';
33
import type { default as FragmentPlugin } from '../SwupFragmentPlugin.js';
44
import type { Route, FragmentVisit, FragmentElement } from './defs.js';
55
import type ParsedRule from './ParsedRule.js';

src/inc/handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const onVisitStart: Handler<'visit:start'> = async function (this: Fragme
3535
const route = getRoute(visit);
3636
if (!route) return;
3737

38-
const fragmentVisit = this.getFragmentVisit(route, visit);
38+
const fragmentVisit = this.getFragmentVisit(route);
3939

4040
/**
4141
* Bail early if the current route doesn't match

0 commit comments

Comments
 (0)