@types/why-did-you-update
Version:
TypeScript definitions for why-did-you-update
47 lines (38 loc) • 1.4 kB
Markdown
# Installation
> `npm install --save @types/why-did-you-update`
# Summary
This package contains type definitions for why-did-you-update (https://github.com/garbles/why-did-you-update).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/why-did-you-update.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/why-did-you-update/index.d.ts)
````ts
/// <reference types="react" />
declare module "why-did-you-update" {
interface Diffs {
name: string;
prev: any;
next: any;
type: any;
}
interface Options {
include?: RegExp | undefined;
exclude?: RegExp | undefined;
groupByComment?: boolean | undefined;
collapseComponentGroups?: boolean | undefined;
notifier?:
| ((
groupByComponent: boolean,
collapseComponentGroups: boolean,
displayName: string,
diffs: Diffs[],
) => void)
| undefined;
}
export function whyDidYouUpdate(react: typeof React, options?: Options): void;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
# Credits
These definitions were written by [rhysd](https://rhysd.github.io).