mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
Fix react-swf
This commit is contained in:
12
react-swf/index.d.ts
vendored
12
react-swf/index.d.ts
vendored
@@ -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`.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference types="react" />
|
||||
var version = ReactSWF.getFPVersion();
|
||||
var isFPVersionSupported = ReactSWF.isFPVersionSupported('5');
|
||||
var reactSWF = new ReactSWF();
|
||||
|
||||
Reference in New Issue
Block a user