Skip to content

Instantly share code, notes, and snippets.

@chmelevskij
Created September 6, 2020 05:15
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 chmelevskij/3bd5611d9a07c3395db057c3ef7e932c to your computer and use it in GitHub Desktop.
Save chmelevskij/3bd5611d9a07c3395db057c3ef7e932c to your computer and use it in GitHub Desktop.
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