utility.ts 297 B

12345678910111213
  1. function getInputValue(elementId: string): string {
  2. const inputElement: HTMLInputElement = <HTMLInputElement>document.getElementById(elementId);
  3. return inputElement.value;
  4. }
  5. function logger(message: string): void {
  6. console.log(message);
  7. }
  8. export {
  9. getInputValue as getValue,
  10. logger,
  11. }