@cleanweb/oore 1.2.0-alpha.3 → 1.2.0-alpha.4
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/build/slots/types.d.ts +3 -4
- package/build/slots/types.js +0 -1
- package/package.json +1 -1
package/build/slots/types.d.ts
CHANGED
|
@@ -8,12 +8,11 @@ export type TSlotsRecord<TKey extends TSlotAlias = TSlotAlias> = {
|
|
|
8
8
|
export interface DisplayNamedComponent<TProps extends any = any> extends FunctionComponent<TProps> {
|
|
9
9
|
displayName: string;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
(props: TProps): ReactNode;
|
|
11
|
+
export type SlotNamedComponent<TComponentArg extends TComponent = TComponent, TSlotNameArg extends TSlotName = TSlotName> = TComponentArg & {
|
|
13
12
|
slotName: TSlotNameArg;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
export type SlotComponent<Component extends TComponent = TComponent> = SlotNamedComponent | DisplayNamedComponent<Component>;
|
|
16
|
-
export type SlottedComponent<TComponentArg extends
|
|
15
|
+
export type SlottedComponent<TComponentArg extends TComponent = TComponent, TSlotAliasArg extends TSlotAlias = TSlotAlias, TSlotsRecordArg extends TSlotsRecord<TSlotAliasArg> = TSlotsRecord<TSlotAliasArg>> = TComponentArg & {
|
|
17
16
|
Slots: TSlotsRecordArg;
|
|
18
17
|
};
|
|
19
18
|
export type TSlotNodes<TSlotAliasArg extends TSlotAlias> = {
|
package/build/slots/types.js
CHANGED
package/package.json
CHANGED