Skip to content

Commit

Permalink
fix: Remove import cycle between assertSlots.ts and index.ts (#30555)
Browse files Browse the repository at this point in the history
Have assertSlots.ts import directly from ./slot instead of ./index.
  • Loading branch information
behowell authored Feb 15, 2024
1 parent e3b2a5c commit e29c4df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Remove import cycle between assertSlots.ts and index.ts",
"packageName": "@fluentui/react-utilities",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { SLOT_ELEMENT_TYPE_SYMBOL } from './constants';
import { isSlot } from './isSlot';
import { ComponentState, ExtractSlotProps, SlotComponentType, SlotPropsRecord } from './types';
import { slot } from './index';
import * as slot from './slot';

type SlotComponents<Slots extends SlotPropsRecord> = {
[K in keyof Slots]: SlotComponentType<ExtractSlotProps<Slots[K]>>;
Expand Down

0 comments on commit e29c4df

Please sign in to comment.