Skip to content

Instantly share code, notes, and snippets.

@ipcrm
Created February 21, 2019 14:45
Show Gist options
  • Save ipcrm/eb3e053e5e6e851d41f9da0b77adfc11 to your computer and use it in GitHub Desktop.
Save ipcrm/eb3e053e5e6e851d41f9da0b77adfc11 to your computer and use it in GitHub Desktop.
quick param example
const validation: BaseParameter = {
type: "string",
required: true,
};
const trueFalse: BaseParameter = {
...validation,
type: {
kind: "single",
options: [
{ value: "true", description: "Yes" },
{ value: "false", description: "No" },
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment