import { IComponentAs, IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities'; import { IButtonProps } from 'office-ui-fabric-react/lib/Button'; import { ITheme } from 'office-ui-fabric-react/lib/Styling'; export interface ICodepenProps { /** JS string to be passed into Codepen */ jsContent: string | (() => string); /** Optional button type */ buttonAs?: IComponentAs; /** Theme provided by higher-order component. */ theme?: ITheme; /** Optional override styles */ styles?: IStyleFunctionOrObject; } export type ICodepenStyleProps = Pick; export interface ICodepenStyles { subComponentStyles: ICodepenSubComponentStyles; } export interface ICodepenSubComponentStyles { // TODO: remove anys after TS 3 upgrade and full button styling support // eslint-disable-next-line @typescript-eslint/no-explicit-any button: IStyleFunctionOrObject; }