While some existing JavaScript libraries have type definition files, there are many that don't.
TypeScript offers a couple patterns to handle missing declarations.