gtfs-types
TypeScript icon, indicating that this package has built-in type declarations

4.0.0ย โ€ขย Publicย โ€ขย Published

gtfs-types

Build Status npm version

This package exposes TypeScript type definitions for the GTFS Standard and the GTFS Realtime Standard.

Usage

Install the package from npm:

npm install -D gtfs-types

Usage:

import { Route } from "gtfs-types";

const myRoute: Route = {
  route_id: "abc123",
  route_short_name: "24",
  route_long_name: "Crofton Downs to Box Hill",
};

If you use typescript 3.8+ you can also use the type-only import syntax:

import type { Route } from "gtfs-types";

For a list of all types, see the src folder.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i gtfs-types

    Weekly Downloads

    193

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    31.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • kyle.h