const FilterA = Object.freeze({
ALL: 'ALL',
COMPLETED: 'COMPLETED',
UNCOMPLETED: 'UNCOMPLETED'
});
type FilterTypeA = $Values<typeof FilterA>;
let a: FilterTypeA = FilterA.ALL; //OK
a = 'COMPLETED'; //OK
a = 'foo' // Error
Last active
October 28, 2019 09:26
Star
You must be signed in to star a gist
Flow Recipes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment