Skip to content

Instantly share code, notes, and snippets.

View LKay's full-sized avatar

Karol Janyst LKay

  • AXS
  • Tokyo, Japan
View GitHub Profile
// index.jsx
"use strict";
var React = require("react"),
Router = require("react-router"),
Route = Router.Route,
Redirect = Router.Redirect,
App = require("./app"),
@LKay
LKay / TypesafeField.tsx
Last active February 15, 2020 15:35
Redux Form 6.2.0 typings
import { Field } from "redux-form"
interface TypesafeFieldProps { foo: string }
const TypesafeField = Field as new () => Field<TypesafeFieldProps, any>
const node1 = (<TypesafeField name="test" component="input" foo="bar" />) // OK
const node2 = (<TypesafeField name="test" component="input" foo="bar" fizz="buzz" />) // Error (as expected)
16:55:30.209 INFO - Selenium build info: version: '3.0.1', revision: '1969d75'
16:55:30.209 INFO - Launching a standalone Selenium Server
2017-03-15 16:55:30.225:INFO::main: Logging initialized @225ms
16:55:30.274 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
16:55:30.274 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
16:55:30.275 INFO - Driver class not found: com.opera.core.systems.OperaDriver
16:55:30.275 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:
Unable to create new instances on this machine.
import * as React from "react";
import {
createElement,
cloneElement,
Component,
HTMLAttributes,
ReactElement,
ReactType,
CSSProperties, ReactNode, ReactInstance
} from "react";