Fix Flex component type
This commit is contained in:
parent
c9d9d53fb1
commit
1a1e5c2e1d
|
@ -46,7 +46,7 @@ export let useToken: t.useToken;
|
||||||
|
|
||||||
export const MaskedLink = findComponent<t.MaskedLinkProps>(filters.componentByCode("MASKED_LINK)"));
|
export const MaskedLink = findComponent<t.MaskedLinkProps>(filters.componentByCode("MASKED_LINK)"));
|
||||||
export const Timestamp = findComponent<t.TimestampProps>(filters.componentByCode(".Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL.format"));
|
export const Timestamp = findComponent<t.TimestampProps>(filters.componentByCode(".Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL.format"));
|
||||||
export const Flex = findComponent<t.FlexProps>(filters.byProps("Justify", "Align", "Wrap"));
|
export const Flex = findComponent(filters.byProps("Justify", "Align", "Wrap")) as t.Flex;
|
||||||
|
|
||||||
export const OAuth2AuthorizeModal = findExportedComponent("OAuth2AuthorizeModal");
|
export const OAuth2AuthorizeModal = findExportedComponent("OAuth2AuthorizeModal");
|
||||||
|
|
||||||
|
|
2
src/webpack/common/types/components.d.ts
vendored
2
src/webpack/common/types/components.d.ts
vendored
|
@ -327,7 +327,7 @@ export type Slider = ComponentType<PropsWithChildren<{
|
||||||
}>>;
|
}>>;
|
||||||
|
|
||||||
// TODO - type maybe idk probably not that useful other than the constants
|
// TODO - type maybe idk probably not that useful other than the constants
|
||||||
export type FlexProps = PropsWithChildren<any> & {
|
export type Flex = ComponentType<PropsWithChildren<any>> & {
|
||||||
Align: Record<"START" | "END" | "CENTER" | "STRETCH" | "BASELINE", string>;
|
Align: Record<"START" | "END" | "CENTER" | "STRETCH" | "BASELINE", string>;
|
||||||
Direction: Record<"VERTICAL" | "HORIZONTAL" | "HORIZONTAL_REVERSE", string>;
|
Direction: Record<"VERTICAL" | "HORIZONTAL" | "HORIZONTAL_REVERSE", string>;
|
||||||
Justify: Record<"START" | "END" | "CENTER" | "BETWEEN" | "AROUND", string>;
|
Justify: Record<"START" | "END" | "CENTER" | "BETWEEN" | "AROUND", string>;
|
||||||
|
|
Loading…
Reference in a new issue