fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx

Summary

Maintainability
A
40 mins
Test Coverage
import React from 'react';

interface FooProps {
  /**
   * @deprecated Do not use! Use `size` instead!
   *
   * Width of foo
   */
  width: number;
  /**
   * The size (replaces width)
   */
  size: { width: number; height: number };
}

const Foo: React.FC<FooProps> = (props: FooProps) => <>{JSON.stringify(props)}</>;

export const component = Foo;