Skip to content

createInstance does not exist on an instance #2366

@cbejensen

Description

@cbejensen

🐛 Bug Report

TS says createInstance exists on an instance, but it doesn't.

To Reproduce

StackBlitz

Open the console and see the error.

import i18next from 'i18next';

const instance = i18next.createInstance()
instance.createInstance(); // errors at runtime, but TS is fine with it

Expected behavior

TS shows an error when trying to use createInstance on an instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions