forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add definitions for react-css-transition-replace (DefinitelyTyped#12118)
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ node_modules | |
|
||
.sublimets | ||
.settings/launch.json | ||
yarn.lock |
18 changes: 18 additions & 0 deletions
18
react-css-transition-replace/react-css-transition-replace-tests.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// React CSS Transition Replace Test | ||
// ================================================================================ | ||
///<reference path="react-css-transition-replace.d.ts"/> | ||
///<reference path="../react/react.d.ts"/> | ||
///<reference path="../react/react-dom.d.ts"/> | ||
|
||
// Imports | ||
// -------------------------------------------------------------------------------- | ||
import * as React from "react" | ||
import { render } from 'react-dom'; | ||
import * as CSSTransitionReplace from "react-css-transition-replace" | ||
|
||
render( | ||
<CSSTransitionReplace overflowHidden transitionName="test"> | ||
<div>Test</div> | ||
</CSSTransitionReplace>, | ||
document.getElementById("main") | ||
) |
23 changes: 23 additions & 0 deletions
23
react-css-transition-replace/react-css-transition-replace.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Type definitions for react-css-transition-replace 2.0.1 | ||
// Project: http://marnusw.github.io/react-css-transition-replace/ | ||
// Definitions by: Karol Janyst <https://github.com/LKay> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
|
||
/// <reference path="../react/react.d.ts" /> | ||
/// <reference path="../react/react-addons-css-transition-group.d.ts" /> | ||
|
||
declare namespace TransitionReplace { | ||
import React = __React | ||
|
||
interface CSSTransitionReplaceProps extends React.CSSTransitionGroupProps { | ||
overflowHidden?: boolean | ||
} | ||
|
||
type CSSTransitionReplace = React.ComponentClass<CSSTransitionReplaceProps> | ||
} | ||
|
||
declare module "react-css-transition-replace" { | ||
var CSSTransitionReplace: TransitionReplace.CSSTransitionReplace | ||
type CSSTransitionReplace = TransitionReplace.CSSTransitionReplace | ||
export = CSSTransitionReplace | ||
} |