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
Hi Marcin! How hard would it be to update the build pipeline to make namespaces extendable? I mean this:
lib/string.ts (reexport + extra helpers)
export*from"@mobily/ts-belt/String"// TS2307: Cannot find module '@mobily/ts-belt/String' or its corresponding type declarations.exportfunctioncapitalize(str: string): string{returnstr.charAt(0).toUpperCase()+str.slice(1)}
index.ts (import original + custom helpers under the same namespace)
import*asSfrom"./lib/string"console.log(S.trim)// original methodconsole.log(S.capitalize)// custom method
Would be a great feature, more ergonomic than exporting extra custom hepers under A2, D2, S2 prefixes 😨
Or manual reexport via enumerating every original function:
Hi Marcin! How hard would it be to update the build pipeline to make namespaces extendable? I mean this:
lib/string.ts (reexport + extra helpers)
index.ts (import original + custom helpers under the same namespace)
Would be a great feature, more ergonomic than exporting extra custom hepers under
A2, D2, S2
prefixes 😨Or manual reexport via enumerating every original function:
The text was updated successfully, but these errors were encountered: