@@ -10,11 +10,15 @@ import {
1010	labelValidator , 
1111	textInputStyleValidator , 
1212}  from  './Assertions' ; 
13+ import  type  {  Equatable  }  from  '../../util/equatable' ; 
1314import  {  isJSONEncodable ,  type  JSONEncodable  }  from  '../../util/jsonEncodable' ; 
1415import  {  customIdValidator  }  from  '../Assertions' ; 
1516import  {  ComponentBuilder  }  from  '../Component' ; 
1617
17- export  class  TextInputBuilder  extends  ComponentBuilder < APITextInputComponent >  { 
18+ export  class  TextInputBuilder 
19+ 	extends  ComponentBuilder < APITextInputComponent > 
20+ 	implements  Equatable < JSONEncodable < APITextInputComponent >  |  APITextInputComponent > 
21+ { 
1822	public  constructor ( data ?: APITextInputComponent  &  {  type ?: ComponentType . TextInput  } )  { 
1923		super ( {  type : ComponentType . TextInput ,  ...data  } ) ; 
2024	} 
@@ -99,6 +103,9 @@ export class TextInputBuilder extends ComponentBuilder<APITextInputComponent> {
99103		return  this ; 
100104	} 
101105
106+ 	/** 
107+ 	 * {@inheritDoc JSONEncodable.toJSON } 
108+ 	 */ 
102109	public  toJSON ( ) : APITextInputComponent  { 
103110		validateRequiredParameters ( this . data . custom_id ,  this . data . style ,  this . data . label ) ; 
104111		// eslint-disable-next-line @typescript-eslint/consistent-type-assertions 
@@ -107,6 +114,9 @@ export class TextInputBuilder extends ComponentBuilder<APITextInputComponent> {
107114		}  as  APITextInputComponent ; 
108115	} 
109116
117+ 	/** 
118+ 	 * {@inheritDoc Equatable.equals } 
119+ 	 */ 
110120	public  equals ( other : JSONEncodable < APITextInputComponent >  |  APITextInputComponent ) : boolean  { 
111121		if  ( isJSONEncodable ( other ) )  { 
112122			return  isEqual ( other . toJSON ( ) ,  this . data ) ; 
0 commit comments