#typescript not autocompleting argument

7 messages · Page 1 of 1 (latest)

amber bobcat
#

hello i have a new bun project, which is using the prompts package from npm. there is weird issue where this code

https://www.npmjs.com/package/prompts

await prompts({type: ''})

does not autocomplete. when typing type, it does not appear at all. it does appear when i import the type and assign it to the object

import type { PromptObject } from "prompts"

await prompts({type: ''} as PromptObject)

the package.json and the tsconfig.json is the same as bun generated it, i was wondering if someone knew what was going on here? thanks!

wanton mango
amber bobcat
indigo fossil
#

How are you importing the package?

wanton mango
#

How are you importing?

amber bobcat
#

nevermind somehow its now working on vscode, i just click on some random intellisense button and now no matter what i do, i can't recreate the issue anymore, none of the files changed at all, strange

#

guess i will mark it as resolved?