Skip to content

Commit

Permalink
Merge pull request #23 from zoltantothcom/npm
Browse files Browse the repository at this point in the history
TS definitions
  • Loading branch information
zoltantothcom authored Apr 16, 2019
2 parents 41c3927 + 58945c1 commit 2180397
Show file tree
Hide file tree
Showing 3 changed files with 3,242 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Responsive and accessible clamping component with _«Read more»_/_&la

## Install

`npm install --save react-clamp-lines`
`npm i react-clamp-lines`

## Features

Expand Down
26 changes: 12 additions & 14 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import * as React from 'react';

declare namespace ClampLines {
export interface ClampLinesProps {
text: string;
lines?: number;
ellipsis?: string;
buttons?: boolean;
moreText?: string;
lessText?: string;
className?: string;
delay?: number;
stopPropagation?: boolean;
}
export interface ClampLinesProps {
text: string
lines?: number
ellipsis?: string
buttons?: boolean
moreText?: string
lessText?: string
className?: string
delay?: number
stopPropagation?: boolean
}

declare class ClampLines extends React.Component<ClampLines.ClampLinesProps> { }
declare class ClampLines extends React.Component {}

export = ClampLines;
export default ClampLines
Loading

0 comments on commit 2180397

Please sign in to comment.