Created
February 21, 2019 14:45
-
-
Save ipcrm/eb3e053e5e6e851d41f9da0b77adfc11 to your computer and use it in GitHub Desktop.
quick param example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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