DefinitelyTyped/types/progressbar.js/path.d.ts

16 lines
578 B
TypeScript

/**
* Custom shaped progress bar.
* You can create arbitrary shaped progress bars by passing a SVG path created with e.g. Adobe Illustrator.
* It's on caller's responsibility to append SVG to DOM.
*/
import { AnimationOptions, AnimationSupport } from './';
declare class Path<SElement extends Element = SVGPathElement> {
readonly path?: SElement;
constructor(path: SElement | string | null, options?: AnimationOptions);
}
// tslint:disable-next-line no-empty-interface adds members from animation contract
interface Path extends AnimationSupport {}
export = Path;