//// [file.tsx]
define([
    "require",
    "exports",
    "react"
], function(require, exports, React) {
    "use strict";
    Object.defineProperty(exports, "__esModule", {
        value: true
    });
    function _export(target, all) {
        for(var name in all)Object.defineProperty(target, name, {
            enumerable: true,
            get: Object.getOwnPropertyDescriptor(all, name).get
        });
    }
    _export(exports, {
        get MainButton () {
            return MainButton;
        },
        get NoOverload () {
            return NoOverload;
        },
        get NoOverload1 () {
            return NoOverload1;
        }
    });
    function MainButton(props) {
        var linkProps = props;
        if (linkProps.goTo) {
            return this._buildMainLink(props);
        }
        return this._buildMainButton(props);
    }
    var b0 = /*#__PURE__*/ React.createElement(MainButton, {
        onClick: function onClick(k) {
            console.log(k);
        },
        extra: true
    }); // k has type "left" | "right"
    var b2 = /*#__PURE__*/ React.createElement(MainButton, {
        onClick: function onClick(k) {
            console.log(k);
        },
        extra: true
    }); // k has type "left" | "right"
    var b3 = /*#__PURE__*/ React.createElement(MainButton, {
        goTo: "home",
        extra: true
    }); // goTo has type"home" | "contact"
    var b4 = /*#__PURE__*/ React.createElement(MainButton, {
        goTo: "home",
        extra: true
    }); // goTo has type "home" | "contact"
    function NoOverload(buttonProps) {
        return undefined;
    }
    var c1 = /*#__PURE__*/ React.createElement(NoOverload, {
        onClick: function onClick(k) {
            console.log(k);
        },
        extra: true
    }); // k has type any
    function NoOverload1(linkProps) {
        return undefined;
    }
    var d1 = /*#__PURE__*/ React.createElement(NoOverload1, {
        goTo: "home",
        extra: true
    }); // goTo has type "home" | "contact"
});
