// Type definitions for shapefile 0.5.6 // Project: https://github.com/mbostock/shapefile // Definitions by: Denis Carriere // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare const shapefile: shapefile.ShapefileStatic; declare namespace shapefile { interface Options { encoding: string highWaterMark: number } interface Feature { done: boolean value: GeoJSON.Feature } interface Shapefile { bbox: Array read(): Promise; } interface ShapefileStatic { open(shp: any, dbf?: any, options?: Options): Promise; read(shp: any, dbf?: any, options?: Options): Promise>; } } declare module "shapefile" { export = shapefile }