From 8dc7d715bdc68bc12c579ef32d7cdeafc2ac8d5e Mon Sep 17 00:00:00 2001 From: Daniel Nixon Date: Sat, 1 Feb 2020 08:26:53 +1100 Subject: [PATCH] `history` Add generic type param to createPath (#41993) This is required to fix fallout from https://github.com/DefinitelyTyped/DefinitelyTyped/issues/41674 --- types/history/PathUtils.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/history/PathUtils.d.ts b/types/history/PathUtils.d.ts index 80e5c2db54..18952a2b3e 100644 --- a/types/history/PathUtils.d.ts +++ b/types/history/PathUtils.d.ts @@ -6,4 +6,4 @@ export function hasBasename(path: Path): boolean; export function stripBasename(path: Path, prefix: string): Path; export function stripTrailingSlash(path: Path): Path; export function parsePath(path: Path): Location; -export function createPath(location: LocationDescriptorObject): Path; +export function createPath(location: LocationDescriptorObject): Path;