Skip to content

Commit 66915eb

Browse files
authored
Merge pull request #106 from forabi/add-report-chunks-to-ts-definitions
fix($typescript): Add ReportChunks definitions
2 parents aaa9bfc + afdd235 commit 66915eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
declare module 'react-universal-component' {
22
import * as React from 'react';
33

4+
type ReportChunksProps = {
5+
report(chunkName: string | undefined): void;
6+
};
7+
8+
export class ReportChunks extends React.Component<ReportChunksProps> {}
9+
410
type ComponentType<P> =
511
| React.ComponentType<P>
612
| React.StatelessComponent<P>

0 commit comments

Comments
 (0)