whoami1337 před 1 rokem
rodič
revize
2295da3cd5
5 změnil soubory, kde provedl 15 přidání a 1 odebrání
  1. 1 0
      lib/cjs/index.d.ts
  2. 5 0
      lib/cjs/index.js
  3. 1 0
      lib/esm/index.d.ts
  4. 3 0
      lib/esm/index.js
  5. 5 1
      src/index.ts

+ 1 - 0
lib/cjs/index.d.ts

@@ -1 +1,2 @@
 export * from './interfaces/IUsers';
+export declare function sayHello(name: string): string;

+ 5 - 0
lib/cjs/index.js

@@ -14,4 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
     for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
 };
 Object.defineProperty(exports, "__esModule", { value: true });
+exports.sayHello = void 0;
 __exportStar(require("./interfaces/IUsers"), exports);
+function sayHello(name) {
+    return "Hey ".concat(name, ", say hello to TypeScript.");
+}
+exports.sayHello = sayHello;

+ 1 - 0
lib/esm/index.d.ts

@@ -1 +1,2 @@
 export * from './interfaces/IUsers';
+export declare function sayHello(name: string): string;

+ 3 - 0
lib/esm/index.js

@@ -1 +1,4 @@
 export * from './interfaces/IUsers';
+export function sayHello(name) {
+    return "Hey ".concat(name, ", say hello to TypeScript.");
+}

+ 5 - 1
src/index.ts

@@ -1 +1,5 @@
-export * from './interfaces/IUsers';
+export * from './interfaces/IUsers';
+
+export function sayHello(name: string) {
+    return `Hey ${name}, say hello to TypeScript.`;
+}