@types/koozaki__romaji-conv
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Installation

npm install --save @types/koozaki__romaji-conv

Summary

This package contains type definitions for @koozaki/romaji-conv (https://romaji-conv.koozaki.com/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koozaki__romaji-conv.

index.d.ts

export as namespace romajiConv;

/**
 * RomajiConv のインスタンスを返す
 *
 * @param someString 変換対象の文字列
 * @return のインスタンス
 */
declare function romajiConv(someString: string): romajiConv.RomajiConv;

declare namespace romajiConv {
    interface RomajiConv {
        /**
         * 変換前の文字列を返す
         *
         * @return 変換前の文字列
         */
        string(): string;

        /**
         * 文字列の変換
         *
         * @param someString ローマ字 or ひらがな or カタカナ
         * @param mapObject マッピングオブジェクト
         * @return ひらがな or カタカナ
         */
        convert(someString: string, mapObject: object): string;

        /**
         * 変換後のひらがなを返す
         *
         * @return 変換後のひらがな
         */
        toHiragana(): string;

        /**
         * 変換後のカタカナを返す
         *
         * @return 変換後のカタカナ
         */
        toKatakana(): string;
    }

    /**
     * 変換後のひらがなを返す
     *
     * @param someString 変換対象の文字列
     * @return 変換後のひらがな
     */
    function toHiragana(someString: string): string;

    /**
     * 変換後のカタカナを返す
     *
     * @param someString 変換対象の文字列
     * @return 変換後のカタカナ
     */
    function toKatakana(someString: string): string;
}

export = romajiConv;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koozaki__romaji-conv

Weekly Downloads

152

Version

2.0.2

License

MIT

Unpacked Size

5.68 kB

Total Files

5

Last publish

Collaborators

  • types