mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Add definitions for react-css-transition-replace (#12118)
This commit is contained in:
committed by
Masahiro Wakame
parent
57d9667b2d
commit
c080846200
1
.gitignore
vendored
1
.gitignore
vendored
@@ -35,3 +35,4 @@ node_modules
|
||||
|
||||
.sublimets
|
||||
.settings/launch.json
|
||||
yarn.lock
|
||||
|
||||
@@ -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
react-css-transition-replace/react-css-transition-replace.d.ts
vendored
Normal file
23
react-css-transition-replace/react-css-transition-replace.d.ts
vendored
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user