UNPKG

react-on-rails

Version:

react-on-rails JavaScript for react_on_rails Ruby gem

15 lines 946 B
import { createBaseClientObject, type BaseClientObjectType } from './client.ts'; import type { ReactOnRailsInternal } from '../types/index.ts'; /** * SSR-specific functions that extend the base client object to create a full object. * Typed explicitly to ensure type safety when mutating the base object. */ export type ReactOnRailsFullSpecificFunctions = Pick<ReactOnRailsInternal, 'handleError' | 'serverRenderReactComponent'>; /** * Full object type that includes all base methods plus real SSR implementations. * Derived from ReactOnRailsInternal by picking base methods and SSR methods. * @public */ export type BaseFullObjectType = Pick<ReactOnRailsInternal, keyof BaseClientObjectType | keyof ReactOnRailsFullSpecificFunctions>; export declare function createBaseFullObject(registries: Parameters<typeof createBaseClientObject>[0], currentObject?: BaseClientObjectType | null): BaseFullObjectType; //# sourceMappingURL=full.d.ts.map