Skip to content

Commit

Permalink
feat(shared): 新增 PropsBase 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Aug 6, 2023
1 parent 7432a7e commit 2ec27a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { SIZES } from './constant';
import React from 'react';

export type Size = (typeof SIZES)[number];
export interface PropsBase<T = HTMLElement> {
export interface PropsBase<T extends HTMLElement = HTMLElement> {
attrs?: Partial<React.HTMLAttributes<T>>;
children?: React.ReactNode;
ref?: React.ForwardedRef<T>;
Expand Down

0 comments on commit 2ec27a2

Please sign in to comment.