Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Mar 3, 2024
1 parent d7ca2e4 commit 5b35a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/full_url_for.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { parse } from 'url';
import encodeURL from './encode_url';
import prettyUrls from './pretty_urls';
import Cache from './cache';
const cache = new Cache();
const cache = new Cache<string>();

function fullUrlForHelper(path = '/'): string {
function fullUrlForHelper(path = '/') {
const { config } = this;
const prettyUrlsOptions = Object.assign({
trailing_index: true,
Expand All @@ -25,7 +25,7 @@ function fullUrlForHelper(path = '/'): string {
path = prettyUrls(path, prettyUrlsOptions);

return path;
}) as string;
});
}

export = fullUrlForHelper;

0 comments on commit 5b35a3a

Please sign in to comment.