Skip to content

hove-io/navitiasdk-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

navitiasdk-typescript

How to install

npm install https://github.com/CanalTP/navitiasdk-typescript

And add the types folder in your tsconfig.json :

{
  "compilerOptions": {
    "typeRoots": [
      "node_modules/navitiasdk-typescript/@types"
    ]
  }
}  

How to use

Add this Typescript definition reference at the header of your ts file

///<reference types="navitia-sdk"/>
///<reference types="navitia-sdk-ux"/>

Import, declare and type your NavitiaSDK

import {NavitiaSDKApi} from "navitia-sdk";
import {NavitiaSDKUXApi} from "navitia-sdk-ux";

declare var NavitiaSDK: NavitiaSDKApi;
declare var NavitiaSDKUX: NavitiaSDKUXApi;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published