ant-design/components/list/context.ts
thinkasany c51031ae53
type: optimize type (#43545)
* type: optimize type

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-07-14 13:25:15 +08:00

12 lines
275 B
TypeScript

import React from 'react';
import type { ListGridType } from '.';
export interface ListConsumerProps {
grid?: ListGridType;
itemLayout?: string;
}
export const ListContext = React.createContext<ListConsumerProps>({});
export const ListConsumer = ListContext.Consumer;