react-show-more: Convert to LF (#26681)

This commit is contained in:
Andy 2018-06-19 16:33:42 -07:00 committed by GitHub
parent 68fa3f6fcb
commit 7eae3c4d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 58 deletions

View File

@ -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;

View File

@ -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 >;

View File

@ -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"
]
}

View File

@ -1,3 +1,3 @@
{
"extends": "dtslint/dt.json"
{
"extends": "dtslint/dt.json"
}