npm.io
1.1.2 • Published 2 years ago

@types/japanese-characters

Licence
MIT
Version
1.1.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.