TypeScript/tests/cases/fourslash/jsdocDeprecated_suggestion18_functionArgumentsWithOverloads.ts
Nathan Shively-Sanders a9d808bd0d Move reporting to checkObjectLiteral and checkJsxOpeningLikeElementOrOpeningFragment
It is now obvious that this only works when there's a contextual type
for the object literal.
2021-11-03 09:47:04 -07:00

17 lines
476 B
TypeScript

//// function overloadFunc(props: {
//// /** @deprecated */
//// a: boolean;
//// c?: boolean;
//// }): JSX.Element
//// function overloadFunc(props: { a: boolean; b: boolean }): JSX.Element
//// function overloadFunc(_props: { a: boolean; b?: boolean; c?: boolean }) {
//// return <div />;
//// }
//// overloadFunc({ [|a|]: true });
//// overloadFunc({ a: true, b: true });
const ranges = test.ranges();
verify.getSuggestionDiagnostics([])