@ensembleapp/client-sdk 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -168,12 +168,16 @@ declare function createSDKWidget<TSchema extends FlexibleSchema, TEnriched exten
168
168
  *
169
169
  * This type is intentionally loose to accept ReactDOM from any React version
170
170
  * without requiring customers to cast their imports.
171
+ *
172
+ * Note: We use `any` for render parameters to avoid TypeScript contravariance issues.
173
+ * Using `unknown` would require customers to cast their ReactDOM imports because
174
+ * @types/react-dom uses `ReactNode` (narrower) which isn't assignable to `unknown` (broader).
171
175
  */
172
176
  type CustomerReactDOM = {
173
- render?: (element: unknown, container: HTMLElement, callback?: () => void) => unknown;
177
+ render?: (element: any, container: HTMLElement, callback?: () => void) => any;
174
178
  unmountComponentAtNode?: (container: HTMLElement) => boolean;
175
- createRoot?: (container: HTMLElement, options?: Record<string, unknown>) => {
176
- render: (children: unknown) => void;
179
+ createRoot?: (container: HTMLElement, options?: Record<string, any>) => {
180
+ render: (children: any) => void;
177
181
  unmount: () => void;
178
182
  };
179
183
  [key: string]: unknown;