Gimp.Scanner.prototype.parse_int

function parse_int(): [ok: Boolean, dest: Number(gint)] {
    // Gjs wrapper for gimp_scanner_parse_int()
}
  

Since 2.4

ok

true on success

dest

Return location for the parsed integer