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
But the type definitions don't seem to reflect that such valid is valid for type:
Type '"english"' is not assignable to type '"custom" | "fingerprint" | "keyword" | "language" | "nori" | "pattern" | "simple" | "standard" | "stop" | "whitespace" | "icu_analyzer" | "kuromoji" | "snowball" | "dutch" | "smartcn" | "cjk" | "phone" | "phone-search"'. ts(2322) _common.analysis.d.ts(76, 3): The expected type comes from property 'type' which is declared here on type 'Analyzer'
amitbeck
changed the title
[BUG] english analyzer not supported by type definitions
[BUG] Built-in english analyzer not supported by type definitions
Feb 20, 2025
What is the bug?
The docs show an example of configuring an English analyzer like so:
But the type definitions don't seem to reflect that such valid is valid for
type
:How can one reproduce the bug?
What is the expected behavior?
"english"
should be a valid value fortype
in theAnalyzer
union typeWhat is your host/environment?
macOS 15.3.1
Node.js v22.14.0
TypeScript v5.7.2
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: