history Add generic type param to createPath (#41993)

This is required to fix fallout from https://github.com/DefinitelyTyped/DefinitelyTyped/issues/41674
This commit is contained in:
Daniel Nixon
2020-02-01 08:26:53 +11:00
committed by GitHub
parent 63bf4488c8
commit 8dc7d715bd

View File

@@ -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<S>(location: LocationDescriptorObject<S>): Path;