import type { State } from '../types' ; import * as Types from './types' ; export const getRequestById = ( state , id ) : Types . RequestState | null => { return state . robotApi [ id ] || null ; } ; export const getRequests = ( state , ids ) : Array < Types . RequestState | null > => { return ids . map ( id => getRequestById ( state , id ) ) ; } ;