Typescript clone