Blame view

天文台pc/tianwentai-ui/node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.d.ts 411 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
  /**
   * If `componentProps` is a function, calls it with the provided `ownerState`.
   * Otherwise, just returns `componentProps`.
   */
  declare function resolveComponentProps<TProps, TOwnerState, TSlotState>(componentProps: TProps | ((ownerState: TOwnerState, slotState?: TSlotState) => TProps) | undefined, ownerState: TOwnerState, slotState?: TSlotState): TProps | undefined;
  export default resolveComponentProps;