Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.21 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.21 KB

types.ts

Shared TypeScript definitions for Jawg Maps projects

npm version Run lint and test Publish GitHub Pages Release NPM Package License

Usage

See all exported types at https://jawg.github.io/types.ts

Example

Perfect usage in @jawg/js-loader index.d.ts

import { JawgPlaces } from '@jawg/types';

interface Options {
  accessToken: string;
}

export default class JawgJSLoader {
  constructor(options: Options);
  loadJawgPlaces(version?: string): Promise<typeof JawgPlaces>;
}