JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48
  • Score
    100M100P100Q59885F
  • License MIT

TypeScript definitions for SharedStreets.js

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

npm version Build Status

Installation

npm install --save sharedstreets-types

Example

import { SharedStreetsIntersection, RoadClass } from './'

// Intersection
const intersection: SharedStreetsIntersection = {
  id: 'ABC',
  nodeId: 123,
  inboundReferenceIds: ['DEF'],
  outboundReferenceIds: ['GHI']
}

// RoadClass
RoadClass.Motorway // => 0
RoadClass.Trunk // => 1

Summary

This package contains type definitions for sharedstreets (https://sharedstreets.io/).

Credits

These definitions were written by Denis Carriere https://github.com/DenisCarriere.