The MDN documentation says that Intl.Segmenter is supported in Deno version 1.8 and above. But when trying to use it, I get an error.
error: TS2339 [ERROR]: Property 'Segmenter' does not exist on type 'typeof Intl'.
My code is simply this:
const SEGMENTER = new Intl.Segmenter('en', { granularity: 'grapheme' });
And here's my Deno version info:
deno 1.20.4 (release, x86_64-unknown-linux-gnu)
v8 10.0.139.6
typescript 4.6.2
Am I missing something about why this wouldn't work?