Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitReusesLambdaParameterNodes.js

28 lines
917 B
TypeScript

//// [tests/cases/compiler/declarationEmitReusesLambdaParameterNodes.ts] ////
//// [index.d.ts]
export type Whatever = {x: string, y: number};
export type Props<T, TThing = Whatever> = Omit<TThing, "y"> & Partial<TThing> & T;
//// [index.ts]
import { Props } from "react-select";
export const CustomSelect1 = <Option,>(x: Props<Option> & {}) => {}
export function CustomSelect2<Option,>(x: Props<Option> & {}) {}
//// [index.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomSelect1 = void 0;
exports.CustomSelect2 = CustomSelect2;
const CustomSelect1 = (x) => { };
exports.CustomSelect1 = CustomSelect1;
function CustomSelect2(x) { }
//// [index.d.ts]
import { Props } from "react-select";
export declare const CustomSelect1: <Option>(x: Props<Option> & {}) => void;
export declare function CustomSelect2<Option>(x: Props<Option> & {}): void;