Fix react-swf

This commit is contained in:
Ryan Cavanaugh
2016-05-12 13:36:37 -07:00
parent 39ead8c798
commit aa61aa525d
2 changed files with 5 additions and 8 deletions

12
react-swf/index.d.ts vendored
View File

@@ -3,13 +3,11 @@
// Definitions by: Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react"/>
import * as React from 'react';
export as namespace ReactSWF;
declare const self: typeof rswf.ReactSWF;
export = self;
declare module "react-swf" {
export = ReactSWF;
}
declare var ReactSWF: typeof rswf.ReactSWF
declare namespace rswf {
interface State {
@@ -112,7 +110,7 @@ declare namespace rswf {
*/
flashvars?: Object | string
}
export class ReactSWF extends __React.Component<Props, State>{
export class ReactSWF extends React.Component<Props, State>{
/**
* Returns the Flash Player object DOM node.
* Should be prefered over `React.findDOMNode`.

View File

@@ -1,4 +1,3 @@
/// <reference types="react" />
var version = ReactSWF.getFPVersion();
var isFPVersionSupported = ReactSWF.isFPVersionSupported('5');
var reactSWF = new ReactSWF();