Open yanisurbis opened 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
brandi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 7, 2023 11:36am |
This suffers from https://github.com/vovaspace/brandi/issues/35, which is fixed in https://github.com/vovaspace/brandi/pull/38
Problem statement:
creator is not a constructor
(because of how error handling is done inContainer.createInstance
function)This PR attempts to fix this problem by introducing a function that helps to distinguish between classes and function so we avoid swallowing the error during a module initialization.
{ cause: e }
is not supported in older TS versions