@cleanweb/oore 2.0.0-alpha.32 → 2.0.0-alpha.33
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.
|
@@ -85,7 +85,9 @@ export type SlottedComponent<TOwner extends object = ComponentType<any>, TSlots
|
|
|
85
85
|
Slots: TSlots;
|
|
86
86
|
requiredSlotAliases?: Array<keyof TSlots>;
|
|
87
87
|
};
|
|
88
|
-
export type TypedNode<P, T extends JSXTagLike
|
|
88
|
+
export type TypedNode<P, T extends JSXTagLike> = Omit<ReactElement<P>, 'type'> & {
|
|
89
|
+
type: T;
|
|
90
|
+
};
|
|
89
91
|
export type TSlotNode<TSlotted extends SlottedComponent, Key extends keyof TSlotted['Slots'] = keyof TSlotted['Slots']> = (TypedNode<ComponentProps<TSlotted['Slots'][Key]>, TSlotted['Slots'][Key]>);
|
|
90
92
|
/**
|
|
91
93
|
* A record of slot aliases mapped to the corresponding `ReactNode`(s)
|
package/build/slots/types.d.ts
CHANGED
|
@@ -85,7 +85,9 @@ export type SlottedComponent<TOwner extends object = ComponentType<any>, TSlots
|
|
|
85
85
|
Slots: TSlots;
|
|
86
86
|
requiredSlotAliases?: Array<keyof TSlots>;
|
|
87
87
|
};
|
|
88
|
-
export type TypedNode<P, T extends JSXTagLike
|
|
88
|
+
export type TypedNode<P, T extends JSXTagLike> = Omit<ReactElement<P>, 'type'> & {
|
|
89
|
+
type: T;
|
|
90
|
+
};
|
|
89
91
|
export type TSlotNode<TSlotted extends SlottedComponent, Key extends keyof TSlotted['Slots'] = keyof TSlotted['Slots']> = (TypedNode<ComponentProps<TSlotted['Slots'][Key]>, TSlotted['Slots'][Key]>);
|
|
90
92
|
/**
|
|
91
93
|
* A record of slot aliases mapped to the corresponding `ReactNode`(s)
|
package/package.json
CHANGED