sparse-intern-71089
02/07/2022, 5:48 PMmillions-furniture-75402
02/07/2022, 6:11 PMmammoth-art-6111
02/07/2022, 6:14 PMmammoth-art-6111
02/07/2022, 6:15 PMmammoth-art-6111
02/07/2022, 6:15 PMmammoth-art-6111
02/07/2022, 6:23 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 integrationsmammoth-art-6111
02/07/2022, 6:23 PMmammoth-art-6111
02/07/2022, 6:24 PMfoo.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
mammoth-art-6111
02/07/2022, 6:25 PMmammoth-art-6111
02/07/2022, 6:35 PMmammoth-art-6111
02/07/2022, 6:39 PMimport * as module from module
doesn't register, but import {resource} from module
does registermammoth-art-6111
02/07/2022, 6:39 PMmammoth-art-6111
02/07/2022, 7:29 PMlittle-cartoon-10569
02/07/2022, 8:13 PMnew MyResourceA(...()
, and all the important code is elsewhere.mammoth-art-6111
02/07/2022, 8:14 PMmammoth-art-6111
02/07/2022, 8:15 PMlittle-cartoon-10569
02/07/2022, 8:17 PMlittle-cartoon-10569
02/07/2022, 8:20 PMmammoth-art-6111
02/07/2022, 8:22 PMimport * as X from "x";
as long as x
has a default export.mammoth-art-6111
02/07/2022, 8:23 PMbillions-judge-9412
02/07/2022, 8:33 PMlittle-cartoon-10569
02/07/2022, 8:35 PMbillions-judge-9412
02/08/2022, 2:22 AM