Add return type for compile() function and attributes for Style instances