Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript errors #6

Open
boris-petrov opened this issue Jan 9, 2020 · 5 comments
Open

TypeScript errors #6

boris-petrov opened this issue Jan 9, 2020 · 5 comments

Comments

@boris-petrov
Copy link

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;
@mfeckie
Copy link

mfeckie commented Mar 22, 2021

Is there anything we can do to resolve this issue?

@boris-petrov
Copy link
Author

@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.

@mfeckie
Copy link

mfeckie commented Mar 22, 2021

@boris-petrov Does that just override the definitions from the ones provided by the addon?

@boris-petrov
Copy link
Author

Yep.

@mfeckie
Copy link

mfeckie commented Mar 23, 2021

Super helpful! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants