@wix/origami-runtime 0.19.6 → 0.19.7
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/define.d.ts +4 -2
- package/package.json +2 -2
package/dist/define.d.ts
CHANGED
|
@@ -100,8 +100,10 @@ export interface ComponentDefinition<TProps extends Record<string, PropBuilder<a
|
|
|
100
100
|
export declare const defineComponent: <TProps extends Record<string, PropBuilder<any>>, TElements extends Record<string, PropBuilder<any>> = Record<string, never>>(def: ComponentDefinition<TProps, TElements>) => ComponentDefinition<TProps, TElements>;
|
|
101
101
|
export type InferProps<D extends ComponentDefinition<any, any>> = {
|
|
102
102
|
[K in keyof D['props']]?: D['props'][K]['_type'];
|
|
103
|
-
} & (
|
|
103
|
+
} & (DeclaredKeys<NonNullable<D['elements']>> extends never ? unknown : {
|
|
104
104
|
elementProps?: {
|
|
105
|
-
[K in
|
|
105
|
+
[K in DeclaredKeys<NonNullable<D['elements']>>]?: NonNullable<D['elements']>[K]['_type'];
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
|
+
type DeclaredKeys<T> = string extends keyof T ? never : keyof T;
|
|
109
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/origami-runtime",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.7",
|
|
4
4
|
"description": "React runtime for Origami-generated component wrappers: context bindings, providers, and className resolution",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"type": "module",
|
|
62
|
-
"falconPackageHash": "
|
|
62
|
+
"falconPackageHash": "2e3e71bf5b65677684f9ccb0d12a6dc9bc4f40a459a6130d0360a39e"
|
|
63
63
|
}
|