Copying the latest LKG from TypeScript.