@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.8 to 0.0.9
import type TReact from "react"; | ||
import type { Context } from "../Entities"; | ||
import { reactify } from "../../reactify"; | ||
import { YMapGroupEntity } from "../YMapEnities"; | ||
import { overrideKeyReactify } from "../wrappers"; | ||
interface YMapReactContainerPropsImpl<TContext> { | ||
@@ -25,3 +25,3 @@ onElement: (element?: Element) => void; | ||
/** @internal */ | ||
static [reactify.overrideKey]: import("../../reactify/reactify").CustomReactify<YMapReactContainer, TReact.FC<YMapReactContainerProps<unknown> & { | ||
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<YMapReactContainer, TReact.FC<YMapReactContainerProps<unknown> & { | ||
children?: TReact.ReactNode; | ||
@@ -28,0 +28,0 @@ }>>; |
export * from "./imperative"; | ||
export declare const __DTS_HIDDEN_BEGIN__: unknown; |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Types for ymaps3 maps library", | ||
@@ -5,0 +5,0 @@ "main": "", |
import type { Reactify, ReactifyEntity, ReactifiedEntity, ReactifyModule, ReactifiedModule } from "./reactify"; | ||
import type { YMapReactContainer } from "../imperative/YMapReactContainer"; | ||
import { overrideKeyReactify } from "../imperative/wrappers"; | ||
@@ -11,1 +12,8 @@ type TReact = typeof import("react"); | ||
export declare const reactify: Readonly<GenericReactify>; | ||
declare module './reactify' { | ||
interface ReactifyModule<TModule extends BaseModule = BaseModule> { | ||
(module: typeof import("../index")): ReactifiedModule<BaseModule & typeof import("../index") & { | ||
YMapReactContainer: typeof YMapReactContainer; | ||
}>; | ||
} | ||
} |
@@ -21,3 +21,3 @@ import type TReact from "react"; | ||
reactify: { | ||
module: <TModule extends BaseModule>(module: TModule) => ReactifiedModule<TModule>; | ||
module: ReactifyModule; | ||
entity<T extends EntityConstructor<GenericEntity<unknown>> = EntityConstructor<TEntity>>(...args: Parameters<InternalReactifyEntity<T>>): ReturnType<InternalReactifyEntity<T>>; | ||
@@ -37,3 +37,5 @@ context: <TContext extends Context<unknown>>(context?: TContext) => TReact.Context<unknown>; | ||
export type ReactifiedEntity<TCtor extends EntityConstructor<GenericEntity<unknown>>> = ReturnType<InternalReactifyEntity<TCtor>>; | ||
export type ReactifyModule = <TModule extends BaseModule>(module: TModule) => ReactifiedModule<TModule>; | ||
export interface ReactifyModule<TModule extends BaseModule = BaseModule> { | ||
(module: TModule): ReactifiedModule<TModule>; | ||
} | ||
export type GetReactContext<TContext extends Context<unknown>> = (context?: TContext | undefined) => React.Context<unknown>; | ||
@@ -40,0 +42,0 @@ export type ReactifiedModule<TModule extends BaseModule> = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119293
3210