add type library to composer.json