Files
DefinitelyTyped/types/react-faux-dom/index.d.ts
2017-06-19 13:34:54 +02:00

31 lines
830 B
TypeScript

// Type definitions for react-faux-dom 3.1
// Project: https://github.com/Olical/react-faux-dom
// Definitions by: Ali Taheri Moghaddar <https://github.com/alitaheri>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as React from "react";
export class Element extends HTMLElement {
style: any;
constructor(nodeName: string, parentNode?: Element);
toReact(): React.ReactElement<any>;
}
export const defaultView: {
getComputedStyle(node: Element): { getPropertyValue(name: string): string };
};
export namespace mixins {
const core: any;
const anim: any;
}
export function createElement(nodeName: string): Element;
export function createElementNS(namespace: string, nodeName: string): Element;
export function compareDocumentPosition(): number;