You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Parent.tsx
import Child from "./Child";
const constant = Child.constant; // Child.constant is visible
type childProps = Child.Props; // Child.Props is not visible
🙁 Actual behavior
Child.Props is not visible in Parent.tsx
🙂 Expected behavior
Child.Props is visible in Parent.tsx because I think it should be as Child.constant is visible in Parent.tsx.
The text was updated successfully, but these errors were encountered:
@DanielRosenwasser I know we’ve talked about this as a feature request before but I can’t for the life of me find anything to link it to. Tried searching for “function return namespace” but no luck.
I think any time we discuss namespaces being carried together with values, the feature is "associated types" which allow values' types to contain other types, effectively turning them into namespaces.
I looked at that issue and even searched “associated types” but that particular proposal is so complicated that I felt like there must have been a simpler proposal to link to 😅
Bug Report
🔎 Search Terms
namespace disappear, namespace lost
🕗 Version & Regression Information
4.3.5
also tested:
3.9.10
,4.0.8
,4.1.6
,4.2
,4.4.3
⏯ Playground Link
Couldn't use it as the issue occurs in a script importing another script.
💻 Code
🙁 Actual behavior
Child.Props is not visible in
Parent.tsx
🙂 Expected behavior
Child.Props is visible in
Parent.tsx
because I think it should be as Child.constant is visible inParent.tsx
.The text was updated successfully, but these errors were encountered: