(
from: string | Date | Expression,
to: string | Date | Expression,
step: string | Expression
)
| 269 | |
| 270 | // Fill |
| 271 | fill( |
| 272 | from: string | Date | Expression, |
| 273 | to: string | Date | Expression, |
| 274 | step: string | Expression |
| 275 | ): this { |
| 276 | this._fill = { |
| 277 | from: |
| 278 | from instanceof Expression ? from.toString() : this.escapeDate(from), |
| 279 | to: to instanceof Expression ? to.toString() : this.escapeDate(to), |
| 280 | step: step instanceof Expression ? step.toString() : step, |
| 281 | }; |
| 282 | return this; |
| 283 | } |
| 284 | |
| 285 | private escapeDate(value: string | Date): string { |
| 286 | if (value instanceof Date) { |
no test coverage detected