npm typescript appraoch #2