Fix typescript definition of setProtectionData method
Created by: mzyy94
The method setProtectionData()
only accepts ProtectionData
type in TypeScript. But it's wrong type. Actually, an object with a value of ProtectionData
instance is correct.
Fixed it.