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

[Help] How to resolve types that are imports to the declaring type? #1579

Open
douglasg14b opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@douglasg14b
Copy link

douglasg14b commented Oct 16, 2024

I'm been struggle with this and can't seem to find issues or docs that mention this. I've searched on google, stackoverflow, the docs, and tried ChatGPT with no solution. I'm probably missing knowledge of the appropriate terminology.

I'm sure it's documented somewhere, but the discoverability is rather difficult.

I have a type that's imported:

import type { AddressBoxType } from '@ivr3/aws-connect-modules';

interface Outputs {
    ADDRESS_BOX_TYPE: AddressBoxType;
}

The output I get is:

type.getText() // import(\"/home/[redacted]/programming/[redacted]/[redacted]/packages/[redacted]/src/utilities/getAddressBoxType\").AddressBoxType

type.getSymbol() // undefined

I cannot figure out how to resolve the import with ts-morph.

How do you do this?


  • fixMissingImports() wasn't it

Similar questions:

@douglasg14b douglasg14b changed the title [Help] How to resolve type imports? [Help] How to resolve types that are imports to the declaring type? Oct 16, 2024
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

1 participant