From 9001c724d54a5521977782f2d5723e017b55c2bb Mon Sep 17 00:00:00 2001 From: jong-hui Date: Tue, 8 Sep 2020 11:15:23 +0900 Subject: [PATCH] Type support --- index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..15c2235 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,12 @@ +import _josa from "josa" + +export type JosaFormat = '을/를' | '을' | '를' | '을를' | '은/는' | '은' | '는' | '은는' | '이/가' | '이' | '가' | '이가'; + +export interface IJosa { + r: (word: string, format: JosaFormat) => string, + c: (word: string, format: JosaFormat) => string +} + +declare const Josa: IJosa = _josa; + +export default Josa \ No newline at end of file