vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
30 lines (28 loc) • 1.19 kB
TypeScript
import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
import { default as Feature, ObjectWithGeometry } from 'ol/Feature';
import { default as Geometry } from 'ol/geom/Geometry';
type Props = {
properties?: Geometry | ObjectWithGeometry<Geometry>;
};
declare function __VLS_template(): {
default?(_: {}): any;
};
declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
feature: Ref<Feature<Geometry>, Feature<Geometry>>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};