diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 33680abf81..f8374a5018 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -338,6 +338,8 @@ declare namespace React { displayName?: string; } function createContext( + // If you thought this should be optional, see + // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24509#issuecomment-382213106 defaultValue: T, calculateChangedBits?: (prev: T, next: T) => number ): Context;