mammoth-art-6111
02/07/2022, 5:48 PMimport * from webhooks
and it will instantiate whatever is in webhooks.ts
?millions-furniture-75402
02/07/2022, 6:11 PMmammoth-art-6111
02/07/2022, 6:14 PMwebhooks
stack that was concerned with integrations w/ different SaaS parts of our CICD pipeline. and let's say i had several REST endpoints configured w/ a gateway for each webhook provider; lets say there are three. so basically, i want index.ts
and three files; foo.ts, bar.ts, baz.ts
for each of the providers integrationsfoo.ts
to look like index.ts
, as example, and i did the following in index.ts, nothing happens:
import * from foo.ts
import * from bar.ts
import * from baz.ts
import * as module from module
doesn't register, but import {resource} from module
does registerlittle-cartoon-10569
02/07/2022, 8:13 PMnew MyResourceA(...()
, and all the important code is elsewhere.mammoth-art-6111
02/07/2022, 8:14 PMlittle-cartoon-10569
02/07/2022, 8:17 PMmammoth-art-6111
02/07/2022, 8:22 PMimport * as X from "x";
as long as x
has a default export.billions-judge-9412
02/07/2022, 8:33 PMlittle-cartoon-10569
02/07/2022, 8:35 PMbillions-judge-9412
02/08/2022, 2:22 AM