Package Exports
- sharedstreets-types
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sharedstreets-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TypeScript definitions for SharedStreets.js
Installation
npm install --save sharedstreets-typesExample
import { SharedStreetsIntersection, RoadClass } from './'
// Intersection
const intersection: SharedStreetsIntersection = {
id: 'ABC',
nodeId: 123,
inboundReferenceIds: ['DEF'],
outboundReferenceIds: ['GHI']
}
// RoadClass
RoadClass.Motorway // => 0
RoadClass.Trunk // => 1Summary
This package contains type definitions for sharedstreets (https://sharedstreets.io/).
Credits
These definitions were written by Denis Carriere https://github.com/DenisCarriere.