mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add types to react-ellipsis-with-tooltip (#47351)
* add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip * add types to react-ellipsis-with-tooltip Co-authored-by: Piotr Bender <piotr.bender@silevis.com>
This commit is contained in:
parent
e7eef8abc2
commit
dd185890c7
32
types/react-ellipsis-with-tooltip/index.d.ts
vendored
Normal file
32
types/react-ellipsis-with-tooltip/index.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
// Type definitions for react-ellipsis-with-tooltip 1.1
|
||||
// Project: https://github.com/amirfefer/react-ellipsis-with-tooltip
|
||||
// Definitions by: Piotr Bender <https://github.com/SIN3d73>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.9
|
||||
import * as React from 'react';
|
||||
|
||||
export interface EllipsisWithTooltipProps {
|
||||
placement?: 'auto-start'
|
||||
| 'auto'
|
||||
| 'auto-end'
|
||||
| 'top-start'
|
||||
| 'top'
|
||||
| 'top-end'
|
||||
| 'right-start'
|
||||
| 'right'
|
||||
| 'right-end'
|
||||
| 'bottom-end'
|
||||
| 'bottom'
|
||||
| 'bottom-start'
|
||||
| 'left-end'
|
||||
| 'left'
|
||||
| 'left-start';
|
||||
style?: React.CSSProperties;
|
||||
delayShow?: number;
|
||||
delayHide?: number;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
declare class EllipsisWithTooltip extends React.Component<EllipsisWithTooltipProps> {}
|
||||
|
||||
export default EllipsisWithTooltip;
|
||||
3
types/react-ellipsis-with-tooltip/package.json
Normal file
3
types/react-ellipsis-with-tooltip/package.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"private": true
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
|
||||
|
||||
<EllipsisWithTooltip
|
||||
placement="bottom"
|
||||
delayShow={10}
|
||||
delayHide={10}
|
||||
style={{ maxWidth: 300 }}
|
||||
>
|
||||
test123
|
||||
</EllipsisWithTooltip>;
|
||||
25
types/react-ellipsis-with-tooltip/tsconfig.json
Normal file
25
types/react-ellipsis-with-tooltip/tsconfig.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-ellipsis-with-tooltip-tests.tsx"
|
||||
]
|
||||
}
|
||||
1
types/react-ellipsis-with-tooltip/tslint.json
Normal file
1
types/react-ellipsis-with-tooltip/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user