import {polygon, Feature, Polygon} from '@turf/helpers' import simplify from './' const poly = polygon([[[0, 0], [10, 10], [20, 20], [0, 0]]]); // Output type is the same as Input type const simple: Feature = simplify(poly); // Extra params simplify(poly, {tolerance: 1}); simplify(poly, {tolerance: 1, highQuality: true});