diff --git a/types/why-did-you-update/index.d.ts b/types/why-did-you-update/index.d.ts index f9d1a60939..6761e94cce 100644 --- a/types/why-did-you-update/index.d.ts +++ b/types/why-did-you-update/index.d.ts @@ -7,9 +7,25 @@ /// declare module "why-did-you-update" { + interface Diffs { + name: string; + prev: any; + next: any; + type: any; + } + interface Options { include?: RegExp; exclude?: RegExp; + groupByComment?: boolean; + collapseComponentGroups?: boolean; + notifier?: ( + groupByComponent: boolean, + collapseComponentGroups: boolean, + displayName: string, + diffs: Diffs[] + ) => void; } + export function whyDidYouUpdate(react: typeof React, options?: Options): void; }