File tree 2 files changed +10
-1
lines changed
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
297
297
}
298
298
299
299
/** 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 > ) {
301
301
return this . cmp ( "<=" , rhs ) ;
302
302
}
303
303
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
+
304
312
toString ( ) : string {
305
313
return `params.${ this . name } ` ;
306
314
}
You can’t perform that action at this time.
0 commit comments