@primer/react
Version:
An implementation of GitHub's Primer Design System using React
9 lines • 313 B
TypeScript
//#region src/utils/types/Slots.d.ts
interface SlotMarker {
/** Marker to denote the custom child slot for a component */
__SLOT__?: symbol;
}
type WithSlotMarker<T> = T & SlotMarker;
type FCWithSlotMarker<P> = WithSlotMarker<React.FC<P>>;
//#endregion
export { FCWithSlotMarker, SlotMarker, WithSlotMarker };