Created
August 1, 2017 07:32
-
-
Save JLarky/09cce0eedb5be151a9e71dba0271c2a0 to your computer and use it in GitHub Desktop.
grapheme-splitter typescript type declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import GraphemeSplitter = require("grapheme-splitter"); | |
// console.log((new GraphemeSplitter()).splitGraphemes("π·ππ©πππ³οΈβπ")); | |
declare module 'grapheme-splitter' { | |
class GraphemeSplitter { | |
constructor(); | |
public splitGraphemes(input: string): string[]; | |
public countGraphemes(input: string): number; | |
} | |
export = GraphemeSplitter; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment