Mercurial > obsidian-remember-file-state
comparison src/main.ts @ 55:388eb78ef4b7
Typescript compliance.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 02 Oct 2023 18:12:11 -0700 |
parents | 06504ceb3283 |
children | 4f6cbc0b339c |
comparison
equal
deleted
inserted
replaced
54:06504ceb3283 | 55:388eb78ef4b7 |
---|---|
503 } | 503 } |
504 | 504 |
505 private readonly setupLogFile = function(outLogPath: string) { | 505 private readonly setupLogFile = function(outLogPath: string) { |
506 console.log("RememberFileState: setting up log file: ", outLogPath); | 506 console.log("RememberFileState: setting up log file: ", outLogPath); |
507 | 507 |
508 const makeWrapper = function(origFunc) { | 508 const makeWrapper = function(origFunc: () => void) { |
509 return function (data) { | 509 return function () { |
510 origFunc.apply(console, arguments); | 510 origFunc.apply(console, arguments); |
511 | 511 |
512 var text: string = ""; | 512 var text: string = ""; |
513 for (var i: number = 0; i < arguments.length; i++) { | 513 for (var i: number = 0; i < arguments.length; i++) { |
514 if (i > 0) text += " "; | 514 if (i > 0) text += " "; |