tslib module import code example
Example 1: add module tslib
// TypeScript 3.9.2 or later
npm install tslib
// TypeScript 3.8.4 or earlier
npm install tslib@^1
// TypeScript 2.3.2 or earlier
npm install [email protected]
Example 2: This syntax requires an imported helper named '__spreadArrays' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
npm install tslib