Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/mui-material/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export * from './styles';

export * from './utils';

export * from './transitions';

export { default as Accordion } from './Accordion';
export * from './Accordion';

Expand Down
21 changes: 21 additions & 0 deletions packages/mui-material/src/transitions/transition.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
import { expectType } from '@mui/types';
import type {
EasingProps,
TransitionHandlerKeys,
TransitionHandlerProps,
TransitionKeys,
TransitionProps,
} from '@mui/material';
import type * as transitions from '@mui/material/transitions';
import Collapse from '@mui/material/Collapse';

const transition = (
<Collapse in id="my-id" style={{ margin: 2 }}>
<div />
</Collapse>
);

// The transition types are re-exported from the package root.
declare const easingProps: EasingProps;
declare const handlerKeys: TransitionHandlerKeys;
declare const handlerProps: TransitionHandlerProps;
declare const transitionKeys: TransitionKeys;
declare const transitionProps: TransitionProps;
expectType<transitions.EasingProps, typeof easingProps>(easingProps);
Comment thread
maksimgm marked this conversation as resolved.
Resolved
expectType<transitions.TransitionHandlerKeys, typeof handlerKeys>(handlerKeys);
expectType<transitions.TransitionHandlerProps, typeof handlerProps>(handlerProps);
expectType<transitions.TransitionKeys, typeof transitionKeys>(transitionKeys);
expectType<transitions.TransitionProps, typeof transitionProps>(transitionProps);
Loading