Skip to content

Commit

Permalink
feat(ts): migrate PolygonOverlayProps to index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Aug 8, 2021
1 parent debcb37 commit fcc7cbb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/overlays/Polygon.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Ref, shallowRef } from 'vue';
import { PolygonOverlayProps } from '~/types';
import { useGlobalState } from '../../utils/store';

type PolygonProps = {
'polygon-coordinates': number[][]; // [lat, lng]
'polygon-style': mapkit.StyleConstructorOptions;
};

export const PolygonOverlay = (props: PolygonProps): void => {
export const PolygonOverlay = (props: PolygonOverlayProps): void => {
const state = useGlobalState();
const mapkit: Ref<typeof window.mapkit> = shallowRef(state.mapkit.value);

Expand Down

0 comments on commit fcc7cbb

Please sign in to comment.