mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 17:07:07 +08:00
31 lines
830 B
TypeScript
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;
|