Skip to main content

classify_interface

Function classify_interface 

Source
pub fn classify_interface(members: &[Member]) -> InterfaceClassification
Expand description

Classify an interface based on its members.

  • Dictionary: Only has properties (getters/setters), no methods — gets builder pattern and property accessors. Includes interfaces with required properties (the builder validates them at runtime).
  • ClassLike: Has methods, constructors, or static members
  • Unclassified: Empty or unclear