Per-package namespace types for monorepos. Augment this in each package's
i18next.d.ts instead of CustomTypeOptions.resources when several packages
need their own namespaces — otherwise TypeScript reports TS2717 on merge.
Works alongside the legacy CustomTypeOptions.resources field; both end up
in TypeOptions['resources'].
Scalar type options like defaultNS, returnNull, enableSelector, etc.,
still belong on CustomTypeOptions — this interface is for namespace
resource types only.
Per-package namespace types for monorepos. Augment this in each package's
i18next.d.tsinstead ofCustomTypeOptions.resourceswhen several packages need their own namespaces — otherwise TypeScript reports TS2717 on merge.Works alongside the legacy
CustomTypeOptions.resourcesfield; both end up inTypeOptions['resources'].Scalar type options like
defaultNS,returnNull,enableSelector, etc., still belong onCustomTypeOptions— this interface is for namespace resource types only.See
https://github.com/i18next/i18next/issues/2409
Example