UNPKG
zh-translator
Version:
latest (0.0.1)
0.0.1
离线中文翻译库
github.com/Plumbiu/picomatch
Plumbiu/picomatch
zh-translator
/
dist
/
index.d.ts
14 lines
(11 loc)
•
263 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
interface
Inflection
{
type
:
string
;
value
:
string
; }
interface
Translation
{
word
:
string
;
translation
:
string
;
inflection
:
Inflection
[]; }
declare
function
translate
(
word
:
string
):
Promise
<
Translation
[] |
undefined
>;
export
{ translate };