i18next / i18next-browser-languageDetector

language detector used in browser environment for i18next
MIT License
865 stars 88 forks source link

Missing TypeScript type for getBestMatchFromCodes #247

Closed hug0b closed 3 years ago

hug0b commented 3 years ago

🐛 Bug Report

"getBestMatchFromCodes" detector option is not allowed in TypeScript.

To Reproduce

https://codesandbox.io/s/missing-typescript-type-for-getbestmatchfromcodes-nrg5o

Expected behavior

"getBestMatchFromCodes" is a valid option from what I understand.

adrai commented 3 years ago

It's not an option at all... it's an internal function of i18next