Skip to content

Commit

Permalink
fix($typescript): Add ReportChunks definitions
Browse files Browse the repository at this point in the history
Add ReportChunks component to TypeScript definitions file
  • Loading branch information
forabi committed Feb 20, 2018
1 parent aaa9bfc commit afdd235
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
declare module 'react-universal-component' {
import * as React from 'react';

type ReportChunksProps = {
report(chunkName: string | undefined): void;

This comment has been minimized.

Copy link
@OliverJAsh

OliverJAsh Aug 2, 2018

Contributor

Why would chunkName be undefined?

};

export class ReportChunks extends React.Component<ReportChunksProps> {}

type ComponentType<P> =
| React.ComponentType<P>
| React.StatelessComponent<P>
Expand Down

0 comments on commit afdd235

Please sign in to comment.