@cleanweb/oore 1.2.0-alpha.1 → 1.2.0-alpha.3
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 +4 -5
- package/package.json +1 -1
package/build/slots/types.d.ts
CHANGED
|
@@ -8,15 +8,14 @@ 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 interface SlotNamedComponent<TProps extends any = any> {
|
|
11
|
+
export interface SlotNamedComponent<TProps extends any = any, TSlotNameArg extends TSlotName = TSlotName> {
|
|
12
12
|
(props: TProps): ReactNode;
|
|
13
|
-
slotName:
|
|
13
|
+
slotName: TSlotNameArg;
|
|
14
14
|
}
|
|
15
15
|
export type SlotComponent<Component extends TComponent = TComponent> = SlotNamedComponent | DisplayNamedComponent<Component>;
|
|
16
|
-
export
|
|
17
|
-
(props: TProps): ReactNode;
|
|
16
|
+
export type SlottedComponent<TComponentArg extends (props: unknown) => ReactNode, TSlotAliasArg extends TSlotAlias = TSlotAlias, TSlotsRecordArg extends TSlotsRecord<TSlotAliasArg> = TSlotsRecord<TSlotAliasArg>> = TComponentArg & {
|
|
18
17
|
Slots: TSlotsRecordArg;
|
|
19
|
-
}
|
|
18
|
+
};
|
|
20
19
|
export type TSlotNodes<TSlotAliasArg extends TSlotAlias> = {
|
|
21
20
|
[Key in TSlotAliasArg]?: ReactElement<any>;
|
|
22
21
|
};
|
package/package.json
CHANGED