Skip to content

Commit

Permalink
Merge pull request #56 from swup/fix/ts-errors
Browse files Browse the repository at this point in the history
Fix TypeScript errors and warnings
  • Loading branch information
hirasso authored Oct 16, 2023
2 parents 38b40ab + 6b9082c commit fee6524
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/inc/ParsedRule.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Swup, { matchPath, classify, Location } from 'swup';
import type { Path } from 'swup';
import { matchPath, classify, Location } from 'swup';
import type { Swup, Path } from 'swup';
import type { Route } from './defs.js';
import { dedupe, queryFragmentElement } from './functions.js';
import Logger, { highlight } from './Logger.js';
Expand Down
4 changes: 2 additions & 2 deletions src/inc/functions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Swup, { Location } from 'swup';
import type { Visit, VisitScroll } from 'swup';
import { Location } from 'swup';
import type { Swup, Visit, VisitScroll } from 'swup';
import type { default as FragmentPlugin } from '../SwupFragmentPlugin.js';
import type { Route, FragmentVisit, FragmentElement } from './defs.js';
import type ParsedRule from './ParsedRule.js';
Expand Down
2 changes: 1 addition & 1 deletion src/inc/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const onVisitStart: Handler<'visit:start'> = async function (this: Fragme
const route = getRoute(visit);
if (!route) return;

const fragmentVisit = this.getFragmentVisit(route, visit);
const fragmentVisit = this.getFragmentVisit(route);

/**
* Bail early if the current route doesn't match
Expand Down

0 comments on commit fee6524

Please sign in to comment.