@@ -221,10 +221,11 @@ const _UklatnTables = new Map([
221221* Transliterates a string of Ukrainian Cyrillic to Latin script.
222222*
223223* @param {string } text - the text to transliterate
224- * @param {string } table - transliteration system, one of:
224+ * @param {string } [ table] - transliteration system, one of:
225225* - "DSTU_9112_A": DSTU 9112:2021 System A
226226* - "DSTU_9112_B": DSTU 9112:2021 System B
227227* - "KMU_55": KMU 55:2010
228+ * @returns {string } transliterated text
228229*/
229230export function encode ( text , table ) {
230231 if ( table === undefined ) { table = 'DSTU_9112_A' ; }
@@ -240,9 +241,10 @@ export function encode(text, table) {
240241* Re-transliterates a string of Ukrainian Latin to Cyrillic script.
241242*
242243* @param {string } text - the text to transliterate
243- * @param {string } table - transliteration system, one of:
244+ * @param {string } [ table] - transliteration system, one of:
244245* - "DSTU_9112_A": DSTU 9112:2021 System A
245246* - "DSTU_9112_B": DSTU 9112:2021 System B
247+ * @returns {string } transliterated text
246248*/
247249export function decode ( text , table ) {
248250 if ( table === undefined ) { table = 'DSTU_9112_A' ; }
0 commit comments