Function overloads are purely a compile-time construct. They have no impact on the emitted JavaScript and thus no run-time cost.

    The following is an example of a function with overloads.

    1. var attr: {
    2. (name: string, value: string): Accessor;
    3. };

    Note that the signature of the actual function implementation is not included in the type.