• Jump To … +
    src/car.js src/cycles.js src/index.ts src/vehicle.ts
  • index.ts

  • ¶
    /**
     * Concat two things
     * @param a a thing
     * @param b another thing
     * @public
     */
    export function add(a: number, b: number): number;
    export function add(a: string, b: string): string;
    export function add(a: number | string, b: number | string): number | string {
      if (typeof a === "number" && typeof b === "number") {
        return a + b;
      } else {
        return "" + a + b;
      }
    }
    
    export const SECRET_STRING = "shhhhh!";
    
    export { default as Car } from "./car";
    export { Unicycle, Bike } from "./cycles";