ember-box
ember-box copied to clipboard
TypeScript errors
Using the latest TypeScript, ember-box
, Ember, everything, I get a bunch of those:
node_modules/ember-box/index.d.ts:50:58 - error TS2694: Namespace '"/home/boris/project/node_modules/@types/ember__object/core"' has no exported member 'default'.
50 readonly create: typeof import("@ember/object/core").default.create;
Is there anything we can do to resolve this issue?
@mfeckie - well, I have:
declare module 'ember-box';
export function unwrap<T>(argument: T): T;
export function update<T>(argument: T, value: T): void;
In a types/ember-box/index.d.ts
file.
@boris-petrov Does that just override the definitions from the ones provided by the addon?
Yep.
Super helpful! Thanks