mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[@types/why-did-you-update] Add missing properties to Options interface (#33810)
* Add missing properties to `Options` interface The options interface was missing some options outlined here: https://github.com/maicki/why-did-you-update#options * Make notifier optional
This commit is contained in:
committed by
Wesley Wigham
parent
45307b03ae
commit
6a36646bbf
Vendored
+16
@@ -7,9 +7,25 @@
|
||||
/// <reference types="react" />
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user