fix extending of api (type module should extend $ only)