Skip to content

Instantly share code, notes, and snippets.

View y1hao's full-sized avatar

Yihao Wang y1hao

  • Microsoft
  • Auckland, NZ
  • 03:44 (UTC -12:00)
View GitHub Profile
@y1hao
y1hao / index.ts
Created June 17, 2023 11:13
A strongly typed helper function
import { Properties } from "./properties";
// an example value
const props: Properties = {
"Octopus.Action.Kubernetes.ExecutionTimeout": 180,
"Octopus.Action.Kubernetes.WaitForJobs": true,
"Octopus.Action.Kubernetes.DeploymentStyle": "BlueGreen"
}
// The name is quite long. A lot of typing to do to get the value