If you're concerned about typhoons, securing the panels to the rafters would likely be the more reliable option. However, I do recommend double-checking how well the rafters are anchored to the foundation to ensure the roof doesn’t lift during strong winds. At the same time you might want to verify that the rafters can support the weight of the panels to avoid any structural issues.