We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/CezaryDanielNowak/React-dotdotdot/blob/master/src/index.js#L70
Dotdotdot.propTypes = { children: PropTypes.node, clamp: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, PropTypes.bool ]).isRequired, truncationChar: PropTypes.string, useNativeClamp: PropTypes.bool, className: PropTypes.string, tagName: PropTypes.string };
https://github.com/CezaryDanielNowak/React-dotdotdot/blob/master/src/index.d.ts#L3
export interface DotdotdotProps extends React.HTMLProps<Dotdotdot> { clamp: string | number | 'auto'; useNativeClamp?: boolean; splitOnChars?: string[]; animate?: boolean; truncationChar?: string; truncationHTML?: string; tagName?: string;
Differences that I could see (TS = TypeScript):
clamp
propTypes
bool
'auto'
className
truncationHTML
animate
children
Might miss something, but you get the idea.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/CezaryDanielNowak/React-dotdotdot/blob/master/src/index.js#L70
https://github.com/CezaryDanielNowak/React-dotdotdot/blob/master/src/index.d.ts#L3
Differences that I could see (TS = TypeScript):
clamp
inpropTypes
hasbool
, but TS does not. It has'auto'
instead.className
is missing in TS.truncationHTML
is missing inpropTypes
animate
is missing inpropTypes
.children
is missing in TS (I don't know whether we should specifychildren
in TS).Might miss something, but you get the idea.
The text was updated successfully, but these errors were encountered: