diff --git a/common/changes/office-ui-fabric-react/pchandoria-contextualMenu-fix_2018-05-11-00-54.json b/common/changes/office-ui-fabric-react/pchandoria-contextualMenu-fix_2018-05-11-00-54.json new file mode 100644 index 00000000000000..67f876df51fb5b --- /dev/null +++ b/common/changes/office-ui-fabric-react/pchandoria-contextualMenu-fix_2018-05-11-00-54.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "Breaking BaseButton Types dependency from ContextualMenu class", + "type": "patch" + } + ], + "packageName": "office-ui-fabric-react", + "email": "pramod.chandoria@hotmail.com" +} \ No newline at end of file diff --git a/packages/office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.types.ts b/packages/office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.types.ts index be148d2028326f..9ef9b679d018d2 100644 --- a/packages/office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.types.ts +++ b/packages/office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.types.ts @@ -1,5 +1,4 @@ import * as React from 'react'; -import { ContextualMenu } from './ContextualMenu'; import { DirectionalHint } from '../../common/DirectionalHint'; import { FocusZoneDirection, IFocusZoneProps } from '../../FocusZone'; import { IIconProps } from '../Icon/Icon.types'; @@ -29,7 +28,10 @@ export interface IContextualMenu { } -export interface IContextualMenuProps extends React.Props, IWithResponsiveModeState { +/** + * React.Props is deprecated and we're removing it in 6.0. Usage of 'any' should go away with it. + */ +export interface IContextualMenuProps extends React.Props, IWithResponsiveModeState { /** * Optional callback to access the IContextualMenu interface. Use this instead of ref for accessing * the public methods and properties of the component. @@ -489,7 +491,10 @@ export interface IContextualMenuItem { inactive?: boolean; } -export interface IContextualMenuSection extends React.Props { +/** + * React.Props is deprecated and we're removing it in 6.0. Usage of 'any' should go away with it. + */ +export interface IContextualMenuSection extends React.Props { /** * The items to include inside the section.