-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
66 lines (54 loc) · 1.65 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Type definitions for Tasye-languages-tools v.0.0.3
// Project: Tasye Languages Tools
// Definitions by: @Tasye24 <[https://github.com/tasye24]>
// ======= Disabled
// ======= Refer using JsDOC in code
// ======= Seems this method is less efficient
// ======= For the moment
/*
export as namespace TasyeLanguageTools
export class TasyeLanguageTools {
constructor(lang?: string);
elision(): TLT.language
variables: {
language: string[]
version: string
}
}
declare namespace TLT {
/**
* @param {string} item the word for example a name like "Andrea"
* @param {boolean} with_pack use the pack ?
* @param {string?} language the language like "fr-FR"
* @param {string|object} word the word like "le"
* @type {(item: string, with_pack: boolean, word: string|{full: string, short: string, exeptions?: string}, language: string?) => string}
* @example
* // With language_pack
* let sentence = "Le vélo " + language("Andrea", true, "de", "fr-FR")
* // > sentence = "Le vélo d'Andréa"
* @example
* // Without language_pack
* let word = {
* full: "de",
* short: "d'",
* }
* let sentence = "Le vélo " + language("Andrea", false, word)
* // > sentence = "Le vélo d'Andréa"
* /
export interface language {
item: string
with_pack: boolean
language?: string
word: string|object
}
export interface variables {
/**
* SMTHIN
* @param language
* /
language: string[]
version: string
}
}
in comment like /* * / remove the last space thx if you want to use it
*/