You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
I just found this, I'm curious why it was defined based on an instance of ipfs, rather than something static since it points at the statically defined types.
My specific use case is to do something like foo instanceof ipfs.types.CID but it happens in static functions or places where the ipfs instance isn't passed as a variable, i.e. where I don't easily have access to the "ipfs" variable, but have easy access to the result of IPFS = require('ipfs'),
The current code does CID=require('cids') solely to allow this type check, which seems exactly the kind of example this change was intended to avoid.