Skip to content

Commit

Permalink
Added unicode type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Dec 14, 2023
1 parent a7ddc26 commit 00cee9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 00cee9e

Please sign in to comment.