type(Grid): enhance autocompletion for Col (#41453)

* fix: better autocompletion

* chore: fix lint
This commit is contained in:
vaakian X 2023-03-26 23:37:46 +08:00 committed by GitHub
parent 16dc06cfe6
commit 022274d088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@ import * as React from 'react';
import { ConfigContext } from '../config-provider';
import RowContext from './RowContext';
import { useColStyle } from './style';
import type { LiteralUnion } from '../_util/type';
// https://github.com/ant-design/ant-design/issues/14324
type ColSpanType = number | string;
type FlexType = number | 'none' | 'auto' | string;
type FlexType = number | LiteralUnion<'none' | 'auto'>;
export interface ColSize {
flex?: FlexType;