Skip to content

Commit

Permalink
Merge pull request #106 from forabi/add-report-chunks-to-ts-definitions
Browse files Browse the repository at this point in the history
fix($typescript): Add ReportChunks definitions
  • Loading branch information
faceyspacey authored Feb 21, 2018
2 parents aaa9bfc + afdd235 commit 66915eb
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;
};

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

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

0 comments on commit 66915eb

Please sign in to comment.