@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -24,2 +24,5 @@ type FillRule = 'evenodd' | 'nonzero'; | ||
} | ||
type HideOutsideRule = { | ||
extent: number; | ||
} | true | false; | ||
interface DrawingStyle { | ||
@@ -37,2 +40,2 @@ zIndex?: number; | ||
} | ||
export { DrawingStyle, Palette, StrokeStyle, Stroke, DrawingStyleIcon, FillRule }; | ||
export { DrawingStyle, Palette, StrokeStyle, Stroke, DrawingStyleIcon, FillRule, HideOutsideRule }; |
@@ -12,2 +12,3 @@ export * from "./coordinates"; | ||
export * from "./layer-description"; | ||
export * from "./layer-implementation"; | ||
export * from "./indoor"; | ||
@@ -22,1 +23,2 @@ export * from "./vec2"; | ||
export * from "./data-source-description"; | ||
export * from "./matrix"; |
@@ -7,2 +7,5 @@ interface VectorObjectsInteractiveArea { | ||
} | ||
interface VectorModelsAnimationDescription { | ||
duration: number; | ||
} | ||
type RasterLayerOptions = Record<string, unknown> & { | ||
@@ -22,17 +25,5 @@ opacity?: number; | ||
type VectorLayerOptions = Record<string, unknown> & { | ||
modelsAppearingAnimation?: { | ||
duration: number; | ||
}; | ||
modelsAppearingAnimation?: VectorModelsAnimationDescription; | ||
iconsInteractiveArea?: VectorObjectsInteractiveArea; | ||
transformLayers?: Record<string, { | ||
color?: { | ||
r: number; | ||
g: number; | ||
b: number; | ||
a: number; | ||
}; | ||
lightness?: number; | ||
saturation?: number; | ||
opacity?: number; | ||
}>; | ||
/** @deprecated Use layer.grouppedWith instead */ | ||
parentLayerId?: string; | ||
@@ -43,2 +34,2 @@ opacity?: number; | ||
}; | ||
export { RasterLayerOptions, VectorLayerOptions, VectorObjectsInteractiveArea }; | ||
export { RasterLayerOptions, VectorLayerOptions, VectorObjectsInteractiveArea, VectorModelsAnimationDescription }; |
@@ -19,2 +19,3 @@ import { Context, GenericComplexEntity, GenericEntity } from "./Entities"; | ||
export declare function useDomContext(entity: GenericComplexEntity<unknown>, element: Element, container: Element | null): () => void; | ||
/** @deprecated Use `useDomContext` instead. */ | ||
export declare abstract class DomEntity<TProps, TElement extends Element = HTMLElement, DefaultProps extends {} = {}> extends YMapGroupEntity<TProps, DefaultProps> { | ||
@@ -21,0 +22,0 @@ protected _element?: TElement; |
@@ -22,3 +22,2 @@ type ContextWatcherFn = () => void; | ||
constructor(props: Props); | ||
destroy?(): void; | ||
update(changedProps: Partial<Props>): void; | ||
@@ -61,2 +60,3 @@ protected _onAttach?(): void; | ||
protected _onDetach: undefined; | ||
abstract destroy(): void; | ||
} | ||
@@ -63,0 +63,0 @@ type EntityProps<T extends GenericEntity<unknown>> = T extends GenericEntity<infer P> ? P : never; |
@@ -6,3 +6,3 @@ import type { BehaviorType, LngLat, MapMode, Margin, PixelCoordinates, Projection, ReadonlyLngLat, LngLatBounds, ZoomRange, ZoomRounding, WorldOptions, ZoomStrategy, EasingFunctionDescription } from "../../common/types"; | ||
import { Config } from "../config"; | ||
import { reactify } from "../../reactify"; | ||
import { overrideKeyReactify } from "../wrappers"; | ||
/** | ||
@@ -165,2 +165,23 @@ * Sets map center. | ||
}>; | ||
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<YMap, import("react").ForwardRefExoticComponent<{ | ||
className?: string | undefined; | ||
location: YMapLocationRequest; | ||
camera?: YMapCameraRequest | undefined; | ||
mode?: MapMode | undefined; | ||
behaviors?: BehaviorType[] | undefined; | ||
restrictMapArea?: false | LngLatBounds | undefined; | ||
zoomRange?: ZoomRange | undefined; | ||
zoomStrategy?: ZoomStrategy | undefined; | ||
zoomRounding?: ZoomRounding | undefined; | ||
margin?: Margin | undefined; | ||
config?: Config | undefined; | ||
hotspotsStrategy?: "forViewport" | "forPointerPosition" | undefined; | ||
copyrights?: boolean | undefined; | ||
copyrightsPosition?: YMapCopyrightsPosition | undefined; | ||
projection?: Projection | undefined; | ||
worldOptions?: WorldOptions | undefined; | ||
children?: import("react").ReactNode; | ||
ref?: import("react").Ref<YMap> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
private readonly _rootContainer; | ||
@@ -174,2 +195,3 @@ private readonly _container; | ||
private _coverage; | ||
private _isDestroyed; | ||
constructor(rootContainer: HTMLElement, props: YMapProps, children?: YMapEntity<unknown>[]); | ||
@@ -176,0 +198,0 @@ readonly children: YMapEntity<unknown>[]; |
import { DomEntity } from "../DomContext"; | ||
import { reactify } from "../../reactify"; | ||
import { overrideKeyReactify } from "../wrappers"; | ||
/** | ||
@@ -34,2 +34,9 @@ * YMapControl props | ||
export declare class YMapControl<T extends YMapControlProps = YMapControlProps> extends DomEntity<T> { | ||
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<YMapControl<YMapControlProps>, import("react").ForwardRefExoticComponent<{ | ||
children?: import("react").ReactNode; | ||
ref?: import("react").Ref<import("../Entities").GenericEntity<{ | ||
controlElement: HTMLElement; | ||
}, {}, import("../Entities").GenericRootEntity<unknown, {}>>> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
protected _createDom(): { | ||
@@ -36,0 +43,0 @@ element: HTMLElement; |
import { DomEntity } from "../DomContext"; | ||
import { YMapComplexEntity } from "../YMapEnities"; | ||
import { reactify } from "../../reactify"; | ||
import { overrideKeyReactify } from "../wrappers"; | ||
/** | ||
@@ -52,2 +52,13 @@ * YMapControlButton props | ||
export declare class YMapControlButton extends YMapComplexEntity<YMapControlButtonProps> { | ||
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<YMapControlButton, import("react").ForwardRefExoticComponent<{ | ||
onClick?: (() => void) | undefined; | ||
disabled?: boolean | undefined; | ||
text?: string | undefined; | ||
color?: string | undefined; | ||
background?: string | undefined; | ||
element?: HTMLElement | undefined; | ||
children?: import("react").ReactNode; | ||
ref?: import("react").Ref<import("../Entities").GenericEntity<YMapControlCommonButtonProps, {}, import("../Entities").GenericRootEntity<unknown, {}>>> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
private _control; | ||
@@ -54,0 +65,0 @@ private _button; |
@@ -1,2 +0,2 @@ | ||
import type { DrawingStyle, GenericGeometry, LngLat } from "../../common/types"; | ||
import type { DrawingStyle, GenericGeometry, LngLat, HideOutsideRule } from "../../common/types"; | ||
import type { DraggableProps, FeatureClickEvents } from "./types"; | ||
@@ -16,2 +16,4 @@ import { YMapEntity } from "../YMapEnities"; | ||
disableRoundCoordinates?: boolean; | ||
/** Hide the marker if it goes beyond the edge of the viewport */ | ||
hideOutsideViewport?: HideOutsideRule; | ||
} & DraggableProps<YMapFeatureEventHandler> & FeatureClickEvents; | ||
@@ -59,3 +61,3 @@ declare const defaultProps: Readonly<{ | ||
protected _onDetach(): void; | ||
protected _onUpdate({ style, id, source, disableRoundCoordinates }: Partial<YMapFeatureProps>): void; | ||
protected _onUpdate({ style, id, source, disableRoundCoordinates, hideOutsideViewport: newHideOutsideViewport }: Partial<YMapFeatureProps>): void; | ||
private __onDragStart; | ||
@@ -62,0 +64,0 @@ private __onDragMove; |
import type { RasterLayerOptions } from "../../common/types"; | ||
import { YMapEntity } from "../YMapEnities"; | ||
import type { LayerImplementationClasses } from "../../common/types/layer-implementation"; | ||
/** | ||
@@ -9,8 +10,10 @@ * YMapLayer props | ||
id?: string; | ||
/** Layer source */ | ||
source: string; | ||
/** Layer type. For tile data sources should use 'ground' */ | ||
type: string; | ||
/** Layer source */ | ||
source?: string; | ||
/** Layer z-index to control order. Default is 1500 */ | ||
zIndex?: number; | ||
/** Layer id to control order in parent group */ | ||
grouppedWith?: string; | ||
/** Layer options */ | ||
@@ -20,2 +23,4 @@ options?: { | ||
}; | ||
/** Method, allows you to define your own implementation of the layer */ | ||
implementation?: LayerImplementationClasses; | ||
}; | ||
@@ -22,0 +27,0 @@ declare const defaultProps: Readonly<{ |
@@ -1,5 +0,5 @@ | ||
import type { LngLat } from "../../common/types"; | ||
import type { HideOutsideRule, LngLat } from "../../common/types"; | ||
import type { DraggableProps, FeatureClickEvents } from "../YMapFeature/types"; | ||
import { YMapGroupEntity } from "../YMapEnities"; | ||
import { reactify } from "../../reactify"; | ||
import { overrideKeyReactify } from "../wrappers"; | ||
/** | ||
@@ -22,2 +22,26 @@ * YMapMarker events handler | ||
disableRoundCoordinates?: boolean; | ||
/** | ||
* Hide the marker if it goes beyond the edge of the viewport. | ||
* Two modes of operation are supported true and {extent: number} | ||
* ```js | ||
* const marker = new YMapMarker({ | ||
* //..., | ||
* hideOutsideViewport: true | ||
* }) | ||
* ``` | ||
* A point element will be removed from the map to optimize DOM size if its coordinates are 100px outside the visible area of the map. | ||
* For most markers, this is sufficient. | ||
* But for very large markers, this can cause an unpleasant blinking effect. | ||
* | ||
* ```js | ||
* const marker = new YMapMarker({ | ||
* //..., | ||
* hideOutsideViewport: { | ||
* extent: 1000 | ||
* } | ||
* }) | ||
* ``` | ||
* A point will be removed from the map if its coordinates are 1000px outside the visible area of the map. | ||
*/ | ||
hideOutsideViewport?: HideOutsideRule; | ||
} & DraggableProps<YMapMarkerEventHandler> & FeatureClickEvents; | ||
@@ -29,2 +53,3 @@ declare const defaultProps: Readonly<{ | ||
blockBehaviors: false; | ||
hideOutsideViewport: false; | ||
zIndex: 0; | ||
@@ -57,5 +82,67 @@ source: "ymaps3x0-default-feature"; | ||
blockBehaviors: false; | ||
hideOutsideViewport: false; | ||
zIndex: 0; | ||
source: "ymaps3x0-default-feature"; | ||
}>; | ||
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<YMapMarker, import("react").ForwardRefExoticComponent<{ | ||
coordinates: LngLat; | ||
source?: string | undefined; | ||
zIndex?: number | undefined; | ||
properties?: Record<string, unknown> | undefined; | ||
id?: string | undefined; | ||
disableRoundCoordinates?: boolean | undefined; | ||
hideOutsideViewport?: HideOutsideRule | undefined; | ||
draggable?: boolean | undefined; | ||
mapFollowsOnDrag?: boolean | { | ||
activeZoneMargin?: import("../../common/types/margin").Margin | undefined; | ||
} | undefined; | ||
onDragStart?: YMapMarkerEventHandler | undefined; | ||
onDragEnd?: YMapMarkerEventHandler | undefined; | ||
onDragMove?: YMapMarkerEventHandler | undefined; | ||
blockEvents?: boolean | undefined; | ||
blockBehaviors?: boolean | undefined; | ||
onDoubleClick?: ((event: MouseEvent) => void) | undefined; | ||
onClick?: ((event: MouseEvent) => void) | undefined; | ||
onFastClick?: ((event: MouseEvent) => void) | undefined; | ||
markerElement?: HTMLElement | undefined; | ||
children?: import("react").ReactNode; | ||
ref?: import("react").Ref<import("../Entities").GenericEntity<{ | ||
/** Coordinates of the marker */ | ||
coordinates: LngLat; | ||
source?: string | undefined; | ||
/** z index of the marker, defaults to 0 */ | ||
zIndex?: number | undefined; | ||
properties?: Record<string, unknown> | undefined; | ||
id?: string | undefined; | ||
/** Do not round coordinates */ | ||
disableRoundCoordinates?: boolean | undefined; | ||
/** | ||
* Hide the marker if it goes beyond the edge of the viewport. | ||
* Two modes of operation are supported true and {extent: number} | ||
* ```js | ||
* const marker = new YMapMarker({ | ||
* //..., | ||
* hideOutsideViewport: true | ||
* }) | ||
* ``` | ||
* A point element will be removed from the map to optimize DOM size if its coordinates are 100px outside the visible area of the map. | ||
* For most markers, this is sufficient. | ||
* But for very large markers, this can cause an unpleasant blinking effect. | ||
* | ||
* ```js | ||
* const marker = new YMapMarker({ | ||
* //..., | ||
* hideOutsideViewport: { | ||
* extent: 1000 | ||
* } | ||
* }) | ||
* ``` | ||
* A point will be removed from the map if its coordinates are 1000px outside the visible area of the map. | ||
*/ | ||
hideOutsideViewport?: HideOutsideRule | undefined; | ||
} & DraggableProps<YMapMarkerEventHandler> & FeatureClickEvents & { | ||
markerElement?: HTMLElement | undefined; | ||
}, {}, import("../Entities").GenericRootEntity<unknown, {}>>> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
readonly element: HTMLElement; | ||
@@ -69,2 +156,3 @@ private _destroyDomCtx?; | ||
blockBehaviors: false; | ||
hideOutsideViewport: false; | ||
zIndex: 0; | ||
@@ -71,0 +159,0 @@ source: "ymaps3x0-default-feature"; |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Types for ymaps3 maps library", | ||
@@ -5,0 +5,0 @@ "main": "", |
import type TReact from "react"; | ||
import type { LngLat, YMapEntity } from "../../../.."; | ||
import type { CustomReactify, OverrideProps } from "../../../../reactify/reactify"; | ||
import type { CustomReactify, OverrideProps, Prettify } from "../../../../reactify/reactify"; | ||
import type { Feature } from "../interface"; | ||
@@ -36,3 +36,3 @@ import type { YMapClusterer as YMapClustererI, YMapClustererProps } from "../YMapClusterer"; | ||
*/ | ||
type YMapClustererReactifiedProps = OverrideProps<YMapClustererProps, { | ||
type YMapClustererReactifiedProps = Prettify<OverrideProps<YMapClustererProps, { | ||
/** Function that returns YMapMarker react component to render marker*/ | ||
@@ -42,5 +42,5 @@ marker: (feature: Feature) => TReact.ReactElement; | ||
cluster: (coordinates: LngLat, features: Feature[]) => TReact.ReactElement; | ||
}>; | ||
type YMapClustererR = TReact.ForwardRefExoticComponent<YMapClustererReactifiedProps & React.RefAttributes<YMapEntity<YMapClustererReactifiedProps>>>; | ||
}>>; | ||
type YMapClustererR = TReact.ForwardRefExoticComponent<Prettify<YMapClustererReactifiedProps & React.RefAttributes<YMapEntity<YMapClustererReactifiedProps>>>>; | ||
export declare const YMapClustererReactifyOverride: CustomReactify<YMapClustererI, YMapClustererR>; | ||
export {}; |
@@ -53,9 +53,19 @@ import type { YMapEntity } from "../../.."; | ||
}>; | ||
static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapClusterer, import("react").ForwardRefExoticComponent<Pick<YMapClustererProps, "tickTimeout" | "features" | "method" | "onRender"> & { | ||
static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapClusterer, import("react").ForwardRefExoticComponent<{ | ||
tickTimeout?: number | undefined; | ||
features: Feature[]; | ||
method: IClusterMethod; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
cluster: (coordinates: LngLat, features: Feature[]) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
} & import("react").RefAttributes<YMapEntity<Pick<YMapClustererProps, "tickTimeout" | "features" | "method" | "onRender"> & { | ||
marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
cluster: (coordinates: LngLat, features: Feature[]) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
}, {}>>>>; | ||
ref?: import("react").Ref<YMapEntity<{ | ||
tickTimeout?: number | undefined; | ||
features: Feature[]; | ||
method: IClusterMethod; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
cluster: (coordinates: LngLat, features: Feature[]) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
}, {}>> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
/** All created entities with cluster id*/ | ||
@@ -62,0 +72,0 @@ private _entitiesCache; |
import type TReact from "react"; | ||
import type { YMapFeature, YMapMarker, YMapHotspot } from "../../../imperative"; | ||
import type { CustomReactify } from "../../../reactify/reactify"; | ||
import { reactify } from "../../../reactify"; | ||
import { overrideKeyReactify } from "../../../imperative/wrappers"; | ||
type YMapHintProps = { | ||
@@ -42,2 +42,3 @@ hint: (object: YMapFeature | YMapMarker | YMapHotspot | undefined) => unknown; | ||
declare class YMapHint extends ymaps3.YMapGroupEntity<YMapHintProps> { | ||
static [overrideKeyReactify]: CustomReactify<YMapHint, TReact.FC<YMapHintProps>>; | ||
private _destroyDomContext; | ||
@@ -44,0 +45,0 @@ private _detachDom; |
@@ -26,2 +26,3 @@ import type { LngLat } from "../../../common/types"; | ||
color: "#f33"; | ||
hideOutsideViewport: true; | ||
}>; | ||
@@ -46,2 +47,3 @@ type DefaultProps = typeof defaultProps; | ||
color: "#f33"; | ||
hideOutsideViewport: true; | ||
}>; | ||
@@ -55,5 +57,30 @@ static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapDefaultMarker, import("react").ForwardRefExoticComponent<{ | ||
disableRoundCoordinates?: boolean | undefined; | ||
} & import("../../../imperative/YMapFeature/types").DraggableProps<import("../../../imperative/YMapMarker").YMapMarkerEventHandler> & import("../../../imperative/YMapFeature/types").FeatureClickEvents & DefaultMarkerCustomProps & { | ||
hideOutsideViewport?: import("../../../common/types/graphics").HideOutsideRule | undefined; | ||
draggable?: boolean | undefined; | ||
mapFollowsOnDrag?: boolean | { | ||
activeZoneMargin?: import("../../../common/types/margin").Margin | undefined; | ||
} | undefined; | ||
onDragStart?: import("../../../imperative/YMapMarker").YMapMarkerEventHandler | undefined; | ||
onDragEnd?: import("../../../imperative/YMapMarker").YMapMarkerEventHandler | undefined; | ||
onDragMove?: import("../../../imperative/YMapMarker").YMapMarkerEventHandler | undefined; | ||
blockEvents?: boolean | undefined; | ||
blockBehaviors?: boolean | undefined; | ||
onDoubleClick?: ((event: MouseEvent) => void) | undefined; | ||
onClick?: ((event: MouseEvent) => void) | undefined; | ||
onFastClick?: ((event: MouseEvent) => void) | undefined; | ||
title?: string | undefined; | ||
subtitle?: string | undefined; | ||
color?: string | undefined; | ||
popup?: { | ||
/** Popup content */ | ||
content: string | ((close: () => void) => HTMLElement); | ||
/** Popup position */ | ||
position: "top" | "left" | "right"; | ||
/** Should popup hide marker. Default is false */ | ||
hidesMarker?: boolean | undefined; | ||
} | undefined; | ||
children?: import("react").ReactNode; | ||
} & import("react").RefAttributes<import("../../../imperative/YMapEnities").YMapEntity<YMapDefaultMarkerProps, {}>>>>; | ||
ref?: import("react").Ref<import("../../../imperative/YMapEnities").YMapEntity<YMapDefaultMarkerProps, {}>> | undefined; | ||
key?: import("react").Key | null | undefined; | ||
}>>; | ||
private _marker; | ||
@@ -60,0 +87,0 @@ private _container; |
import type TReactNamespace from "react"; | ||
import type { CustomReactify } from "../../../../reactify/reactify"; | ||
import type { CustomReactify, Prettify } from "../../../../reactify/reactify"; | ||
import type { YMapEntity } from "../../../.."; | ||
import { YMapDefaultMarker, YMapDefaultMarkerProps } from "../index"; | ||
type YMapDefaultMarkerContainerProps = TReactNamespace.PropsWithChildren<YMapDefaultMarkerProps>; | ||
type YMapDefaultMarkerR = TReactNamespace.ForwardRefExoticComponent<YMapDefaultMarkerContainerProps & React.RefAttributes<YMapEntity<YMapDefaultMarkerProps>>>; | ||
type YMapDefaultMarkerR = TReactNamespace.ForwardRefExoticComponent<Prettify<YMapDefaultMarkerContainerProps & React.RefAttributes<YMapEntity<YMapDefaultMarkerProps>>>>; | ||
export declare const YMapDefaultMarkerReactifyOverride: CustomReactify<YMapDefaultMarker, YMapDefaultMarkerR>; | ||
export {}; |
import type TReact from "react"; | ||
import type { CustomReactify } from "../reactify"; | ||
import type { GenericRootEntity } from "../../imperative/Entities"; | ||
import type { YMap as YMapI, YMapProps } from "../../imperative/YMap"; | ||
import type { CustomReactify, Prettify } from "../reactify"; | ||
import type { YMap as YMapI, YMapProps as YMapPropsI } from "../../imperative/YMap"; | ||
declare global { | ||
@@ -12,8 +11,5 @@ namespace JSX { | ||
} | ||
type ComputedYMapProps = YMapProps & { | ||
container: HTMLElement; | ||
}; | ||
type YMapContainerProps = TReact.PropsWithChildren<YMapProps>; | ||
type YMapR = TReact.ForwardRefExoticComponent<YMapContainerProps & TReact.RefAttributes<GenericRootEntity<ComputedYMapProps>>>; | ||
type YMapContainerProps = TReact.PropsWithChildren<YMapPropsI>; | ||
type YMapR = TReact.ForwardRefExoticComponent<Prettify<YMapContainerProps & TReact.RefAttributes<YMapI>>>; | ||
export declare const YMapReactifyOverride: CustomReactify<YMapI, YMapR>; | ||
export {}; |
import type TReact from "react"; | ||
import type { CustomReactify } from "../reactify"; | ||
import type { CustomReactify, Prettify } from "../reactify"; | ||
import type { GenericEntity } from "../../imperative/Entities"; | ||
@@ -9,4 +9,4 @@ import type { YMapControl as YMapControlI, YMapControlProps } from "../../imperative/YMapControl"; | ||
type YMapControlContainerProps = TReact.PropsWithChildren<YMapControlProps>; | ||
type YMapControlR = TReact.ForwardRefExoticComponent<YMapControlContainerProps & React.RefAttributes<GenericEntity<ComputedYMapControlProps>>>; | ||
type YMapControlR = TReact.ForwardRefExoticComponent<Prettify<YMapControlContainerProps & React.RefAttributes<GenericEntity<ComputedYMapControlProps>>>>; | ||
export declare const YMapControlReactifyOverride: CustomReactify<YMapControlI, YMapControlR>; | ||
export {}; |
import type TReact from "react"; | ||
import type { CustomReactify } from "../reactify"; | ||
import type { CustomReactify, Prettify } from "../reactify"; | ||
import type { YMapControlButton as YMapControlButtonI, YMapControlButtonProps } from "../../imperative/YMapControl"; | ||
import type { GenericEntity } from "../../imperative/Entities"; | ||
type YMapControlButtonContainerProps = TReact.PropsWithChildren<YMapControlButtonProps>; | ||
type YMapControlButtonR = TReact.ForwardRefExoticComponent<YMapControlButtonContainerProps & React.RefAttributes<GenericEntity<YMapControlButtonProps>>>; | ||
type YMapControlButtonR = TReact.ForwardRefExoticComponent<Prettify<YMapControlButtonContainerProps & React.RefAttributes<GenericEntity<YMapControlButtonProps>>>>; | ||
export declare const YMapControlButtonReactifyOverride: CustomReactify<YMapControlButtonI, YMapControlButtonR>; | ||
export {}; |
import type TReactNamespace from "react"; | ||
import type { CustomReactify } from "../reactify"; | ||
import type { CustomReactify, Prettify } from "../reactify"; | ||
import type { GenericEntity } from "../../imperative/Entities"; | ||
@@ -9,4 +9,4 @@ import type { YMapMarker as YMapMarkerI, YMapMarkerProps } from "../../imperative/YMapMarker"; | ||
type YMapMarkerContainerProps = TReactNamespace.PropsWithChildren<ComputedYMapMarkerProps>; | ||
type YMapMarkerR = TReactNamespace.ForwardRefExoticComponent<YMapMarkerContainerProps & React.RefAttributes<GenericEntity<ComputedYMapMarkerProps>>>; | ||
type YMapMarkerR = TReactNamespace.ForwardRefExoticComponent<Prettify<YMapMarkerContainerProps & React.RefAttributes<GenericEntity<ComputedYMapMarkerProps>>>>; | ||
export declare const YMapMarkerReactifyOverride: CustomReactify<YMapMarkerI, YMapMarkerR>; | ||
export {}; |
@@ -44,4 +44,7 @@ import type TReact from "react"; | ||
export type BaseModule = Record<string | symbol, unknown>; | ||
export type Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
export type OverrideProps<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U; | ||
export default function createReactify(React: typeof TReact, ReactDOM: typeof TReactDOM): Reactify; | ||
export {}; |
126993
132
3340