Open BridgeAR opened 4 years ago
@BridgeAR , @davidmarkclements is this being pushed to npm soon? I see that the fix was merged 4 days ago, but the npm package hasn't been updated yet :)
Any updates on this? Also, @BridgeAR, you haven't updated the Typescript definition file in #15. You'll want to do something like:
// index.d.ts
declare module 'rfdc/default' {
export default function rfdc<T>(obj: T) => T;
}
And then make sure that those changes are either:
types
field in your package.json
and then include index.d.ts
in your NPM package).
It would be a great addition to add a subpath such as
rfdc/default
that exports a cloning function with the default options being set. That way there's no need to do e.g.: