import { isDev } from '../constants' ; param { Record < string , string > } pathsPerPlatform returns { String } example export function getPathByPlatformInDev ( pathsPerPlatform ) { const platform = process . platform as keyof typeof pathsPerPlatform ; const outputDist = isDev ? pathsPerPlatform [ platform ] : '' ; return outputDist ; }