extends Mixin
implements React.CompositeComponent
{
- render(): React.ReactElement extends Mixin implements react.ClassicComponent {
+ render(): react.ReactElement (clazz: { new(): Component }, mixins?: React.Mixin []): React.ComponentClass {
- var spec: React.ComponentSpec = extractPrototype(clazz);
+function createClass (clazz: { new(): Component }, mixins?: react.Mixin []): react.ComponentClass {
+ var spec: react.ComponentSpec = extractPrototype(clazz);
spec.displayName = clazz.prototype.constructor.name;
if (spec.componentWillMount !== undefined) {
var componentWillMount = spec.componentWillMount;
diff --git a/src/create_mixin.ts b/src/create_mixin.ts
index 47cff23..20591d6 100644
--- a/src/create_mixin.ts
+++ b/src/create_mixin.ts
@@ -1,8 +1,9 @@
/// (clazz: { new(): Mixin }): React.Mixin {
+function createMixin (clazz: { new(): Mixin }): react.Mixin {
return extractPrototype(clazz);
}
diff --git a/src/mixin.ts b/src/mixin.ts
index 996b4ae..d4762e5 100644
--- a/src/mixin.ts
+++ b/src/mixin.ts
@@ -1,18 +1,20 @@
/// implements React.Mixin {
+class Mixin implements react.Mixin {
public refs: {
- [key: string]: React.Component