packages/typescript-to-proptypes/src/types/component.ts/createComponent
export function createComponent(
  name: string,
  types: PropTypeDefinition[],
  propsFilename: string | undefined,
): Component {
  return {
    name,
    types,
    propsFilename,
  };
}