DefinitelyTyped/types/geobuf/index.d.ts
Chad Burt 593b226eac [@types/geobuf] Add typings for geobuf project (#40532)
* Add types for geobuf

https://github.com/mapbox/geobuf

* Remove patch version from header
2019-11-20 12:34:45 -08:00

10 lines
381 B
TypeScript

// Type definitions for geobuf 3.0
// Project: https://github.com/mapbox/geobuf
// Definitions by: Chad Burt <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import Pbf = require('pbf');
import { GeoJSON } from 'geojson';
export function decode(pbf: Pbf): GeoJSON;
export function encode(obj: GeoJSON, pbf: Pbf): Uint8Array;