From 8bb3d7d0371c0baaceac1fe561cd1820e63be54f Mon Sep 17 00:00:00 2001 From: Oleksandr Tkach Date: Tue, 31 Oct 2017 14:33:47 +0100 Subject: [PATCH] fromIso8601 method added to MomentDateAdapter --- typings/adapter/moment-date-adapter.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/adapter/moment-date-adapter.d.ts b/typings/adapter/moment-date-adapter.d.ts index 1c728173..df8083f0 100644 --- a/typings/adapter/moment-date-adapter.d.ts +++ b/typings/adapter/moment-date-adapter.d.ts @@ -24,6 +24,7 @@ export declare class MomentDateAdapter extends DateAdapter { addCalendarMonths(date: Moment, months: number): Moment; addCalendarDays(date: Moment, days: number): Moment; toIso8601(date: Moment): string; + fromIso8601(iso8601String: string): Moment | null; /** * Returns the given value if given a valid Moment or null. Deserializes valid ISO 8601 strings * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty