Last active
June 10, 2017 06:07
-
-
Save jamesplease/482bc904f9727219852276e17e0f0484 to your computer and use it in GitHub Desktop.
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
combineStatuses({ | |
state, | |
every: true, | |
statuses: [ | |
{ | |
action: 'read', | |
resourceName: 'movies', | |
id: 23 | |
} | |
] | |
}); | |
getReadStatus({ | |
state, | |
resources: [ | |
'movies.23', | |
{ | |
resourceName: 'sandwiches' | |
} | |
] | |
}); | |
getDeleteStatus({ | |
state, | |
resources: [ | |
'movies.23', | |
'movies.54' | |
] | |
}); | |
getDeleteStatus({state, resources: 'movies.54'}); | |
getDeleteStatus(state, 'movies.54'); | |
getDeleteStatus(state, ['movies.54', 'movies.23']); | |
getDeleteStatus(['movies.54', 'movies.23'], state); | |
// This sucks | |
getCreateStatus('...'); | |
getCreateManyStatus('...'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment