ion icon indicating copy to clipboard operation
ion copied to clipboard

Added directive for intellisense to find sst module in infra files

Open NicoPowers opened this issue 1 year ago • 2 comments

When using VSCode or similar IDE's with Intellisense, they have trouble finding sst inside the infra folder and there is no way to import sst as a module.

By placing /// <reference path="../.sst/platform/config.d.ts" /> at the top of the index.ts in the infra folder, this allows intellisense find sst for those files.

NicoPowers avatar Jul 28 '24 16:07 NicoPowers

I can confirm this solves it for me as well.

Paliago avatar Jul 30 '24 06:07 Paliago

Can you open an issue for this, I'll ask the team to test it.

jayair avatar Aug 02 '24 21:08 jayair

we're in the middle of switching repos (unfortunately github is making this quite messy) - going to close this PR for now feel free to open again once we've moved over to sst/sst

thdxr avatar Oct 18 '24 19:10 thdxr