function envGetimport { envGet } from "https://deno.land/x/simple_utility@v1.5.2/src/env.deno.ts"; envGet<T extends keyof EnvType, U extends boolean>(key: string,type: T,required: U,): U extends true ? EnvType[T] : EnvType[T] | undefinedConvert environment variable to specified type and get. ExamplesExample 1 const port = envGet("SERVER_PORT", "number", true); Type ParametersT extends keyof EnvTypeU extends booleanParameterskey: stringtype: Trequired: UReturnsU extends true ? EnvType[T] : EnvType[T] | undefined