sharedstreets-types

1.3.1 • Public • Published

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.

/sharedstreets-types/

    Package Sidebar

    Install

    npm i sharedstreets-types

    Weekly Downloads

    193

    Version

    1.3.1

    License

    MIT

    Unpacked Size

    9.43 kB

    Total Files

    6

    Last publish

    Collaborators

    • morganherlocker
    • deniscarriere
    • kpwebb