Installation
npm install --save @types/moji
Summary
This package contains type definitions for moji (https://github.com/niwaringo/moji).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moji.
declare namespace moji {
type Mojisyu = "ZE" | "HE" | "ZS" | "HS" | "HG" | "KK" | "ZK" | "HK";
interface MojisyuRange {
start: number;
end: number;
}
interface MojisyuRegExp {
regexp: RegExp;
list: string[];
}
interface Moji {
convert(beforeType: Mojisyu, afterType: Mojisyu): Moji;
trim(): Moji;
filter(type: Mojisyu): Moji;
reject(type: Mojisyu): Moji;
toString(): string;
}
function addMojisyu(type: string, mojisyu: MojisyuRange | MojisyuRegExp): void;
}
declare function moji(moji: string): moji.Moji;
export = moji;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Yasunori Ohoka.