Add English to Katakana and Romaji conversion support
This commit is contained in:
		
							
								
								
									
										25
									
								
								types/kuroshiro.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								types/kuroshiro.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
declare module "kuroshiro" {
 | 
			
		||||
  interface ConvertOptions {
 | 
			
		||||
    to?: "hiragana" | "katakana" | "romaji";
 | 
			
		||||
    mode?: "normal" | "spaced" | "okurigana" | "furigana";
 | 
			
		||||
    romajiSystem?: "nippon" | "passport" | "hepburn";
 | 
			
		||||
    delimiter_start?: string;
 | 
			
		||||
    delimiter_end?: string;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  class Kuroshiro {
 | 
			
		||||
    constructor();
 | 
			
		||||
    init(analyzer: any): Promise<void>;
 | 
			
		||||
    convert(text: string, options?: ConvertOptions): Promise<string>;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  export = Kuroshiro;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
declare module "kuroshiro-analyzer-mecab" {
 | 
			
		||||
  class KuroshiroAnalyzerMecab {
 | 
			
		||||
    constructor();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  export = KuroshiroAnalyzerMecab;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user