import { List } from 'immutable'; const myList = List([1, 2, 3]);
const newList = myList.push(4);
const newList = myList.delete(2);
const newList = myList.set(1, 5);In these examples, we used the List method to create a new List instance, and then used various methods provided by the package (e.g., push, delete, set) to modify the List without altering the original one. The package library used for TypeScript Immutable List is "immutable". This is a popular open-source library that provides a wide range of data structures for managing immutable objects in JavaScript and TypeScript. The "immutable" package can be installed using npm or yarn, and then imported into your project as demonstrated in the code examples above.