Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enum Status {
Open = 'open',
InProgress = 'in-progress',
Complete = 'complete',
}
const InputSchema = new SimpleSchema({
status: {
type: String,
allowedValues: Object.values(Status),
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment