Creates a minimal interface for the fs, url, and crypto objects as passed into makeReadPowers(). This makes it easier to duck-type the objects. The drawback here is that it is not future-proof, and these types will need to be updated if we end up using additional methods on these objects.
Fixes the invalid type of MaybeReadPowers; properties (defined thru @property) are ignored in a @typedef of that @typedef does not extend object/Object.
Description
This change:
fs
,url
, andcrypto
objects as passed intomakeReadPowers()
. This makes it easier to duck-type the objects. The drawback here is that it is not future-proof, and these types will need to be updated if we end up using additional methods on these objects.MaybeReadPowers
; properties (defined thru@property
) are ignored in a@typedef
of that@typedef
does not extendobject
/Object
.powers.js
makeReadPowersSloppy()
Upgrade Considerations
This is a type-only change.