Is barcode scanner scanner result doc up to date?

Hello, I am working on app where I need to use barcode scanner and I have encountered an issue where BarCodeScannerResult type returns a number. From the documentation it should be typed as BarCodeScanner.Constants.BarCodeType. Is there some conversion table for BarCodeType which would give me an string name of code instead of number?

I can see in code that there has been some change to string, but returned type is in form of number converted to string.

export declare type BarCodeScannerResult = {
    type: string;
    data: string;
    bounds?: BarCodeBounds;
    cornerPoints?: BarCodePoint[];
};