Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created June 5, 2022 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AitorAlejandro/5f6de58f92421969ffbad0bb59b500de to your computer and use it in GitHub Desktop.
Save AitorAlejandro/5f6de58f92421969ffbad0bb59b500de to your computer and use it in GitHub Desktop.
Using Record TS
type ServiceConfigParams = "port" | "basePath" | "enableStripePayments";
const serviceConfigChecked: Record<ServiceConfigParams, string | number | boolean> = {
port: 3000,
basePath: "http://localhost",
enableStripePayments: false,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment