mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
7dde42a5df
commit
85843e8212
2 changed files with 4 additions and 4 deletions
|
|
@ -141,9 +141,9 @@ export class DatePipe implements PipeTransform {
|
|||
// @public
|
||||
export interface DatePipeConfig {
|
||||
// (undocumented)
|
||||
dateFormat: string;
|
||||
dateFormat?: string;
|
||||
// (undocumented)
|
||||
timezone: string;
|
||||
timezone?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
* @publicApi
|
||||
*/
|
||||
export interface DatePipeConfig {
|
||||
dateFormat: string;
|
||||
timezone: string;
|
||||
dateFormat?: string;
|
||||
timezone?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue