Installation
npm install --save @types/japanese-characters
Summary
This package contains type definitions for japanese-characters (https://github.com/words/japanese-characters#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/japanese-characters.
index.d.ts
/**
* a function that returns a `Boolean` indicating whether the given `inputString` contains Japanese characters
*/
export function presentIn<T>(input: T): T extends string ? boolean : false;
/**
* an array of all the Hiragana characters
*/
export const hiragana: string[];
/**
* an array of all the Katakana characters
*/
export const katakana: string[];
Additional Details
- Last updated: Tue, 07 Nov 2023 0337 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.