codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

added runtime checks for react elements #124

Closed anru closed 8 years ago

anru commented 8 years ago

Yeah, I just realized that this changes not necesarry at all. I can do this instead:

import type { HTMLElement } from './my-types';

function foo(element: HTMLElement) {}