mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
react-show-more: Convert to LF (#26681)
This commit is contained in:
parent
68fa3f6fcb
commit
7eae3c4d77
36
types/react-show-more/index.d.ts
vendored
36
types/react-show-more/index.d.ts
vendored
@ -1,18 +1,18 @@
|
||||
// Type definitions for react-show-more 2.0
|
||||
// Project: https://github.com/One-com/react-show-more
|
||||
// Definitions by: Naor Torgeman <https://github.com/naortor>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
export interface ReactShowMoreProps {
|
||||
lines?: number;
|
||||
more?: string;
|
||||
less?: string;
|
||||
children?: string;
|
||||
anchorClass?: string;
|
||||
}
|
||||
|
||||
declare const ShowMore: React.ClassicComponentClass<ReactShowMoreProps>;
|
||||
export default ShowMore;
|
||||
// Type definitions for react-show-more 2.0
|
||||
// Project: https://github.com/One-com/react-show-more
|
||||
// Definitions by: Naor Torgeman <https://github.com/naortor>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
export interface ReactShowMoreProps {
|
||||
lines?: number;
|
||||
more?: string;
|
||||
less?: string;
|
||||
children?: string;
|
||||
anchorClass?: string;
|
||||
}
|
||||
|
||||
declare const ShowMore: React.ClassicComponentClass<ReactShowMoreProps>;
|
||||
export default ShowMore;
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import ShowMore from 'react-show-more';
|
||||
import * as React from 'react';
|
||||
|
||||
const longText = "scenester Banksy single-origin coffee squid flannel XOXO chillwave Helvetica plaid slow-carb drinking vinegar Wes Anderson gastropub";
|
||||
|
||||
<ShowMore
|
||||
lines={3}
|
||||
more='Show more'
|
||||
less='Show less'
|
||||
anchorClass=''
|
||||
>
|
||||
{longText}
|
||||
</ShowMore >;
|
||||
import ShowMore from 'react-show-more';
|
||||
import * as React from 'react';
|
||||
|
||||
const longText = "scenester Banksy single-origin coffee squid flannel XOXO chillwave Helvetica plaid slow-carb drinking vinegar Wes Anderson gastropub";
|
||||
|
||||
<ShowMore
|
||||
lines={3}
|
||||
more='Show more'
|
||||
less='Show less'
|
||||
anchorClass=''
|
||||
>
|
||||
{longText}
|
||||
</ShowMore >;
|
||||
|
||||
@ -1,25 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "react",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-show-more-tests.tsx"
|
||||
]
|
||||
}
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "react",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-show-more-tests.tsx"
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user