@mappingfactory/sdk-react
Version:
React SDK for Michelin's Navigation and Mapping Services.
15 lines (14 loc) • 441 B
TypeScript
import '@mappingfactory/roadsheet/dist/michelin-roadsheet.min.css';
import { RoadsheetOptions, RoadSheetWrapper } from '@mappingfactory/sdk-js';
/**
*
* Since we cannot use the SDK directly in the browser, we need to wrap it in the RoadsheetWrapper class
* before.
*
* @param options
* @returns
*/
export declare function useRoadsheet(options?: RoadsheetOptions): {
error: Error | null;
roadsheet: RoadSheetWrapper | null;
};