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
{{ message }}
Repository navigation
TS: static arrow-function class properties are unresolvable as Class > member #166
Anchoring a TypeScript static class property whose value is an arrow function fails to resolve:
error: hubs/staking.md :: packages/shared-resources/src/utils/NansenPointsTiers.ts > NansenPointsTiersUtils > getTierStakingBalanceRequirement
`getTierStakingBalanceRequirement` not found (claim has no stored hash to match against)
file.ts > Utils > works resolves; file.ts > Utils > fails errors. surf suggest on a file whose class members are all arrow properties reports "no unanchored public symbols found", so the members are invisible to suggest too.
Real-world hit
Dogfooding on the superapp monorepo (surf 0.8.0), writing a staking hub:
Same class shape, same call sites, only the declaration syntax differs. The static-arrow-property style is common in TS codebases (it's what Biome/TS class-property idiom produces), so hub authors will hit this on exactly the utility classes they most want to anchor.
Activity