The new version of Flow is showing a bunch of errors that look like this:
Error -------------------------------------------------------------------------- components/modal-overlay.react.js:35:51 An annotation on event is required because Flow cannot infer its type from local context. [missing-local-annot] 32| } 33| }, []); 34| 35| const onBackgroundMouseDown = React.useCallback(event => { 36| firstClickRef.current = event.target; 37| }, []); 38|
This diff adds the required annotations.
Depends on D9696
Before we even generate key via SymmetricKey, should we check that destination.byteLength is 32 and throw InvalidDestinationSizeException() if not?
It seems like destination is the input that we want to validate, so we should just do that directly? It's not really so much that SymmetricKey is giving us incorrect size key since it's (I'm assuming) always going to give us exactly the size we're asking for?
Feel free to re-request review if there's something I'm missing here.