import { curry } from '@typed/lambda' ; param str param numOfItems returns export const plural = curry ( __plural ) as { ( str , numOfItems ) : string ; ( str ) : ( numOfItems : number ) => string ; } ; function __plural ( str , num ) { if ( num === 1 ) { return str ; } return str + 's' ; }