Skip to content

Commit

Permalink
consolidate type definition for svg-flatten (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 authored Jan 20, 2025
1 parent 51ac2b9 commit 4f057fd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ declare module 'wake-lock';
declare module 'color-interpolate';
declare module 'colormap';

declare module 'flatten-svg/index' {
export { flattenSVG } from "flatten-svg/svg-to-paths";

}
declare module 'flatten-svg/svg-to-paths' {
// https://github.com/nornagon/flatten-svg/issues/27
declare module 'flatten-svg' {
interface Options {
maxError: number;
}
Expand All @@ -24,9 +21,5 @@ declare module 'flatten-svg/svg-to-paths' {
export function flattenSVG(svg: SVGElement, options?: Partial<Options>): Line[];

}
declare module 'flatten-svg' {
import main = require('flatten-svg/index');
export = main;
}

declare const IS_WEB: boolean

0 comments on commit 4f057fd

Please sign in to comment.