@mappingfactory/sdk-react
Version:
React SDK for Michelin's Navigation and Mapping Services.
14 lines (13 loc) • 382 B
TypeScript
import { DirectionOptions, DirectionWrapper } from '@mappingfactory/sdk-js';
/**
*
* Since we cannot use the SDK directly in the browser, we need to wrap it in the DirectionWrapper class
* before.
*
* @param options
* @returns
*/
export declare function useDirection(options?: Partial<DirectionOptions>): {
error: Error | null;
direction: DirectionWrapper | null;
};