UNPKG

@types/geobuf

Version:
25 lines (18 loc) 859 B
# Installation > `npm install --save @types/geobuf` # Summary This package contains type definitions for geobuf (https://github.com/mapbox/geobuf). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geobuf. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geobuf/index.d.ts) ````ts import Pbf = require("pbf"); import { GeoJSON } from "geojson"; export function decode(pbf: Pbf): GeoJSON; export function encode(obj: GeoJSON, pbf: Pbf): Uint8Array; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/pbf](https://npmjs.com/package/@types/pbf) # Credits These definitions were written by [Chad Burt](https://github.com/underbluewaters).