diff --git a/src/runtime/controller.ts b/src/runtime/controller.ts index ae30a8a69..c2b0e61fa 100644 --- a/src/runtime/controller.ts +++ b/src/runtime/controller.ts @@ -14,7 +14,7 @@ import { peprStoreCRD } from "../lib/assets/store"; import { validateHash } from "../lib/helpers"; const { version } = packageJSON; -function runModule(expectedHash: string) { +function runModule(expectedHash: string): void { const gzPath = `/app/load/module-${expectedHash}.js.gz`; const jsPath = `/app/module-${expectedHash}.js`; @@ -59,7 +59,7 @@ Log.info(`Pepr Controller (v${version})`); const hash = process.argv[2]; -const startup = async () => { +const startup = async (): Promise => { try { Log.info("Applying the Pepr Store CRD if it doesn't exist"); await K8s(kind.CustomResourceDefinition).Apply(peprStoreCRD, { force: true }); diff --git a/src/sdk/heredoc.ts b/src/sdk/heredoc.ts index c80746f0a..eccadee74 100644 --- a/src/sdk/heredoc.ts +++ b/src/sdk/heredoc.ts @@ -1,7 +1,7 @@ // Refs: // - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates -export function heredoc(strings: TemplateStringsArray, ...values: string[]) { +export function heredoc(strings: TemplateStringsArray, ...values: string[]): string { // shuffle strings & expression values back together const zipped = strings .reduce((acc: string[], cur, idx) => {