You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the generated types we often see the index signature: [k: string]: unknown on the enum union types, which in TS essentially allows for any additional property in the interfaces.
/// Governance types#[derive(Deserialize,Serialize,Clone,Debug,PartialEq,Eq,JsonSchema)]#[non_exhaustive]pubenumGovernanceDetails<T:AddressLike>{/// A single address is adminMonarchy{/// The monarch's addressmonarch:T,},/// An external governance sourceExternal{/// The external contract addressgovernance_address:T,/// Governance type used for doing extra off-chain queries depending on the type.governance_type:String,},}
The text was updated successfully, but these errors were encountered:
adairrr
changed the title
Don't add index signatures on type unions
Don't add typescript index signatures on enum unions
Jun 20, 2023
In the generated types we often see the index signature:
[k: string]: unknown
on the enum union types, which in TS essentially allows for any additional property in the interfaces.The text was updated successfully, but these errors were encountered: