Skip to content

Commit

Permalink
feat(ts): add basic typings
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jul 30, 2021
1 parent 2e0dc3e commit c93b8e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import '@types/apple-mapkit-js';
import {
AllowedComponentProps,
ComponentCustomProps,
DefineComponent,
VNodeProps,
} from 'vue';

type MapInitOptions = mapkit.MapKitInitOptions;
type MapOptions = mapkit.MapConstructorOptions;

export interface VMapProps {
version: string;
language: string;
accessToken: string;
initOptions: MapInitOptions;
mapOptions: MapOptions;
}

export type VMapComponentProps = AllowedComponentProps &
ComponentCustomProps &
VNodeProps &
VMapProps;

export const VMap: DefineComponent<VMapComponentProps, {}, any>;

0 comments on commit c93b8e6

Please sign in to comment.