From bdb5d6639fff124f07ae65b40f9b9ae4d07ce5c2 Mon Sep 17 00:00:00 2001 From: Sam Mayer Date: Tue, 14 Jan 2025 09:27:12 -0600 Subject: [PATCH] chore: add return types to loader.ts (#1648) ## Description In support of #1364, this PR adds typing to previously-untyped functions. End to End Test: (See [Pepr Excellent Examples](https://github.com/defenseunicorns/pepr-excellent-examples)) ## Related Issue Fixes # Relates to # ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [ ] Unit, [Journey](https://github.com/defenseunicorns/pepr/tree/main/journey), [E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples), [docs](https://github.com/defenseunicorns/pepr/tree/main/docs), [adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or updated as needed - [ ] [Contributor Guide Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request) followed --- src/fixtures/loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fixtures/loader.ts b/src/fixtures/loader.ts index 5ad3f3c37..a837dc9cf 100644 --- a/src/fixtures/loader.ts +++ b/src/fixtures/loader.ts @@ -6,11 +6,11 @@ import admissionRequestDeletePod from "./data/admission-delete-pod.json"; import admissionRequestCreateClusterRole from "./data/admission-create-clusterrole.json"; import admissionRequestCreateDeployment from "./data/admission-create-deployment.json"; -export function AdmissionRequestCreateDeployment() { +export function AdmissionRequestCreateDeployment(): AdmissionRequest { return cloneObject(admissionRequestCreateDeployment); } -export function AdmissionRequestCreatePod() { +export function AdmissionRequestCreatePod(): AdmissionRequest { return cloneObject(admissionRequestCreatePod); }