Skip to content

Commit

Permalink
Fix Suspense render type
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Sep 9, 2019
1 parent d03bbbc commit ac958aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compat/src/suspense.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '../../src';
import { Component, ComponentChild } from '../../src';

//
// Suspense/lazy
Expand All @@ -10,4 +10,6 @@ export interface SuspenseProps {
fallback: preact.ComponentChildren;
}

export abstract class Suspense extends Component<SuspenseProps> {}
export class Suspense extends Component<SuspenseProps> {
render(): ComponentChild;
}

0 comments on commit ac958aa

Please sign in to comment.