nzGutter Type in GridConfig in NzConfig appears to be incorrect
See original GitHub issueReproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-js3xtj?file=src/app/app.module.ts
Steps to reproduce
Set Grid’s nzGutter property in Global Config with object as defined in documentation here e.g.
grid: { nzGutter: { xs: 8, sm: 16, md: 24, lg: 32, xl: 32, xxl: 32 } }
results in
Type '{ xs: number; sm: number; md: number; lg: number; xl: number; xxl: number; }' is not assignable to type 'number | BreakpointMap'.
However type should likely be
{ [key in NzBreakpoint]?: number; } | number;
What is expected?
Type that is specified in documentation to be accepted as correct when setting global config for Grid Gutter
What is actually happening?
Typings are incorrect and wrong type is expected for Grid Gutter global config.
| Environment | Info |
|---|---|
| ng-zorro-antd | 8.5.2 |
| Browser | Chrome Version 80.0.3987.132 |
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ng-zorro-antd - UNPKG
isTemplate = false;\n }\n }\n\n recreateView(): void {\n if (!this. ... types/common-wrap';\n\nexport function toBoolean(value: boolean | string): boolean ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

cc @wendellhu95 it seems that the nzGutter is not supported in the globalconfig yet.
Hi @cparkinsonMYCM we are going to close this issue now, thanks for your reporting.