File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1823,7 +1823,7 @@ export default class DateTime {
1823
1823
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
1824
1824
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
1825
1825
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
1826
- * @return {string }
1826
+ * @return {string|null }
1827
1827
*/
1828
1828
toISO ( {
1829
1829
format = "extended" ,
@@ -1850,7 +1850,7 @@ export default class DateTime {
1850
1850
* @param {string } [opts.format='extended'] - choose between the basic and extended format
1851
1851
* @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
1852
1852
* @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
1853
- * @return {string }
1853
+ * @return {string|null }
1854
1854
*/
1855
1855
toISODate ( { format = "extended" } = { } ) {
1856
1856
if ( ! this . isValid ) {
@@ -1935,7 +1935,7 @@ export default class DateTime {
1935
1935
/**
1936
1936
* Returns a string representation of this DateTime appropriate for use in SQL Date
1937
1937
* @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
1938
- * @return {string }
1938
+ * @return {string|null }
1939
1939
*/
1940
1940
toSQLDate ( ) {
1941
1941
if ( ! this . isValid ) {
You can’t perform that action at this time.
0 commit comments