From 00cee9e6c0fbfb6635c8fd2b229b4645ad1dde27 Mon Sep 17 00:00:00 2001 From: Viktor Podzigun Date: Thu, 14 Dec 2023 22:13:09 +0100 Subject: [PATCH] Added unicode type definition --- index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.d.ts b/index.d.ts index d1b5cd8a..ee051d8b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,3 +2,10 @@ // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/blessed/index.d.ts export * from 'blessed'; + +export const unicode: { + charWidth(str: string | number, i: number | undefined = undefined): number; + strWidth(str: string): number; + isSurrogate(str: string | number, i: number | undefined = undefined): boolean; + isCombining(str: string | number, i: number | undefined = undefined): boolean; +};