fix(common): allow to specify only some properties of DatePipeConfig (#51287)

The code already supports `DatePipeConfig` to have only some properties
set, and not all. But the typing disallows it. This aligns the typing
with the code.

PR Close #51287
This commit is contained in:
Adrien Crivelli 2023-08-07 12:54:46 +08:00 committed by Andrew Scott
parent 7dde42a5df
commit 85843e8212
2 changed files with 4 additions and 4 deletions

View file

@ -141,9 +141,9 @@ export class DatePipe implements PipeTransform {
// @public
export interface DatePipeConfig {
// (undocumented)
dateFormat: string;
dateFormat?: string;
// (undocumented)
timezone: string;
timezone?: string;
}
// @public

View file

@ -15,8 +15,8 @@
* @publicApi
*/
export interface DatePipeConfig {
dateFormat: string;
timezone: string;
dateFormat?: string;
timezone?: string;
}
/**