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

tsc v3.3.33 errors on dts @jxa/global-type #11

Closed
bialikover opened this issue Feb 22, 2019 · 2 comments · Fixed by #12
Closed

tsc v3.3.33 errors on dts @jxa/global-type #11

bialikover opened this issue Feb 22, 2019 · 2 comments · Fixed by #12
Labels
help wanted Extra attention is needed Type: Bug Something isn't working

Comments

@bialikover
Copy link
Contributor

Hi there!

This might be a dumb question but when importing @jxa/global-type on my .ts file and then compiling I get this error:

node_modules/@jxa/global-type/src/index.d.ts:8:11 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'Application' must be of type 'typeof Application', but here has type 'typeof Application & object'.

8     const Application: typeof Application_ & object;
            ~~~~~~~~~~~
Found 1 error.

seems like its causing conflict with this two definition type..

const Application: typeof Application_ & object;

Is it necessary to check that Application is also an object?

@azu azu added Type: Bug Something isn't working help wanted Extra attention is needed labels Feb 24, 2019
@m-thomson
Copy link

FWIW removing & object from the type definition has worked for me. But I should add that (1) My testing has been very limited so far and (2) I'm pretty new-ish to TypeScript so don't fully understand the implications.

@azu
Copy link
Member

azu commented Oct 29, 2019

https://github.com/JXA-userland/JXA/releases/tag/v1.3.1
I've release 1.3.1. Please try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants