diff --git a/types/react-ellipsis-with-tooltip/index.d.ts b/types/react-ellipsis-with-tooltip/index.d.ts new file mode 100644 index 0000000000..d6b0b0fe7c --- /dev/null +++ b/types/react-ellipsis-with-tooltip/index.d.ts @@ -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 +// 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 {} + +export default EllipsisWithTooltip; diff --git a/types/react-ellipsis-with-tooltip/package.json b/types/react-ellipsis-with-tooltip/package.json new file mode 100644 index 0000000000..e72dc54494 --- /dev/null +++ b/types/react-ellipsis-with-tooltip/package.json @@ -0,0 +1,3 @@ +{ + "private": true +} diff --git a/types/react-ellipsis-with-tooltip/react-ellipsis-with-tooltip-tests.tsx b/types/react-ellipsis-with-tooltip/react-ellipsis-with-tooltip-tests.tsx new file mode 100644 index 0000000000..04e53eb596 --- /dev/null +++ b/types/react-ellipsis-with-tooltip/react-ellipsis-with-tooltip-tests.tsx @@ -0,0 +1,11 @@ +import * as React from 'react'; +import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'; + + + test123 +; diff --git a/types/react-ellipsis-with-tooltip/tsconfig.json b/types/react-ellipsis-with-tooltip/tsconfig.json new file mode 100644 index 0000000000..3d9ef8434d --- /dev/null +++ b/types/react-ellipsis-with-tooltip/tsconfig.json @@ -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" + ] +} diff --git a/types/react-ellipsis-with-tooltip/tslint.json b/types/react-ellipsis-with-tooltip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-ellipsis-with-tooltip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }