DefinitelyTyped/types/d3-interpolate-path/index.d.ts
Paweł Dąbrowski a539320135 Added types for d3-interpolate-path package (#35828)
* Added types for reactour package

* added types for d3-interpolate-path package
2019-05-30 12:05:34 -07:00

17 lines
498 B
TypeScript

// Type definitions for d3-interpolate-path 2.0
// Project: https://github.com/pbeshai/d3-interpolate-path
// Definitions by: Paweł Dąbrowski <https://github.com/paolostyle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface PathCommandObject {
type: string;
x: number;
y: number;
}
export function interpolatePath(
a: string,
b: string,
excludeSegment?: (a: PathCommandObject, b: PathCommandObject) => boolean
): (t: number) => string;