@cleanweb/oore 1.2.0-alpha.0 → 1.2.0-alpha.2
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 -3
- package/package.json +1 -1
package/build/slots/types.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ 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 interface SlottedComponent<TProps = any, TSlotsRecordArg extends TSlotsRecord = TSlotsRecord
|
|
16
|
+
export interface SlottedComponent<TProps = any, TSlotAliasArg extends TSlotAlias = TSlotAlias, TSlotsRecordArg extends TSlotsRecord<TSlotAliasArg> = TSlotsRecord<TSlotAliasArg>> {
|
|
17
17
|
(props: TProps): ReactNode;
|
|
18
18
|
Slots: TSlotsRecordArg;
|
|
19
19
|
}
|
package/package.json
CHANGED