File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ - Deprecate typoed function name lessThanorEqualTo (#1284 )
Original file line number Diff line number Diff line change @@ -297,10 +297,18 @@ export abstract class Param<T extends string | number | boolean | string[]> exte
297297 }
298298
299299 /** Returns a parametrized expression of Boolean type, based on comparing the value of this param to a literal or a different expression. */
300- lessThanorEqualTo ( rhs : T | Expression < T > ) {
300+ lessThanOrEqualTo ( rhs : T | Expression < T > ) {
301301 return this . cmp ( "<=" , rhs ) ;
302302 }
303303
304+ /**
305+ * Returns a parametrized expression of Boolean type, based on comparing the value of this param to a literal or a different expression.
306+ * @deprecated A typo. Use lessThanOrEqualTo instead.
307+ */
308+ lessThanorEqualTo ( rhs : T | Expression < T > ) {
309+ return this . lessThanOrEqualTo ( rhs ) ;
310+ }
311+
304312 toString ( ) : string {
305313 return `params.${ this . name } ` ;
306314 }
You can’t perform that action at this time.
0 commit comments