-
Notifications
You must be signed in to change notification settings - Fork 47
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
Importing @stripe/stripe-js generates no types #638
Comments
I think it might need to be something like:
That is assuming that the |
Ah nope that doesn't work. Maybe this?
But now the
|
Hmm |
Oh wait is this issue with |
Surely relative imports must work... I tried:
but |
This also doesn't work:
Local "modules" (they aren't separate modules) aren't considered dependencies? Lines 104 to 111 in 02257bf
|
This also doesn't work:
I realise this makes little sense without the test I am using. It is in steinybot@e3d39fb. Apologies for the ramblings. I'm attempting to document my process so that when I come back to it on Monday I know what I did. |
|
This seems relevant. Lines 59 to 61 in 02257bf
|
importing
"@stripe/stripe-js" -> "4.1.0"
does not generate any types (besidesstripeStripeJsRequire
).The
package.json
has:and
lib/index.d.ts
has:It looks to me like the issue is here:
Converter/importer-portable/src/main/scala/org/scalablytyped/converter/internal/importer/LibraryResolver.scala
Lines 76 to 79 in 02257bf
file.path
is/Users/jason/src/ScalablyTyped/Converter/tests/stripe/in/dist/index.d.ts
source.folder.path
is/Users/jason/src/ScalablyTyped/Converter/tests/stripe/in/lib
relativeTo
returns../dist/index.d.ts
but thesegments
doesn't contain the..
it is only["dist", "index.d.ts"]
so the result isIArray(TsIdentModule(None,List(lib, dist)))
which is wrong.The text was updated successfully, but these errors were encountered: