@types/react-lines-ellipsis
Advanced tools
Comparing version 0.15.3 to 0.15.4
{ | ||
"name": "@types/react-lines-ellipsis", | ||
"version": "0.15.3", | ||
"version": "0.15.4", | ||
"description": "TypeScript definitions for react-lines-ellipsis", | ||
@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lines-ellipsis", | ||
}, | ||
"typesPublisherContentHash": "241c341a5a5f46cbfab6971cdd21c51b785d17b5871444c93ff34ab8534b829d", | ||
"typesPublisherContentHash": "abf11804e995dd06063d38c250ca1a1b31423f69c2d3e0ca9b64274607497480", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,42 +9,5 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lines-ellipsis. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lines-ellipsis/index.d.ts) | ||
````ts | ||
import { Component, HTMLAttributes } from "react"; | ||
declare class LinesEllipsis extends Component<LinesEllipsis.ReactLinesEllipsisProps> { | ||
static defaultProps?: LinesEllipsis.ReactLinesEllipsisProps; | ||
} | ||
declare namespace LinesEllipsis { | ||
type CommonReactLinesEllipsisProps = HTMLAttributes<HTMLDivElement> & { | ||
maxLine?: number | string; | ||
ellipsis?: string; | ||
trimRight?: boolean; | ||
basedOn?: "letters" | "words"; | ||
winWidth?: number; | ||
onReflow?: ({ clamped, text }: { clamped: boolean; text: string }) => void; | ||
component?: string; | ||
}; | ||
type HTMLEllipsisProps = CommonReactLinesEllipsisProps & { | ||
unsafeHTML?: string; | ||
ellipsisHTML?: string; | ||
}; | ||
type LinesEllipsisLooseProps = CommonReactLinesEllipsisProps & { | ||
lineHeight?: number; | ||
overflowFallback?: boolean; | ||
}; | ||
type ReactLinesEllipsisProps = CommonReactLinesEllipsisProps & { | ||
text?: string; | ||
}; | ||
} | ||
export = LinesEllipsis; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 11:45:05 GMT | ||
* Last updated: Wed, 18 Oct 2023 18:04:04 GMT | ||
* Dependencies: [@types/lodash](https://npmjs.com/package/@types/lodash), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -51,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
49
4552
16