E52A fix(checkContext): type as array by fratzinger · Pull Request #636 · feathersjs-ecosystem/feathers-hooks-common · GitHub
[go: up one dir, main page]

Skip to content

fix(checkContext): type as array#636

Merged
daffl merged 4 commits intofeathersjs-ecosystem:masterfrom
fratzinger:patch-1
Jul 30, 2021
Merged

fix(checkContext): type as array#636
daffl merged 4 commits intofeathersjs-ecosystem:masterfrom
fratzinger:patch-1

Conversation

@fratzinger
Copy link
Collaborator

Problem:

checkContext was not able to handle type as array, although it was defined in index.d.ts.

Solution:

transform type into array (same as method) and check against type with Array.prototype.includes().
Also added tests for this scenario.

No breaking change. No new feature. The typings already seem like this would work.

@daffl daffl merged commit 9cdf642 into feathersjs-ecosystem:master Jul 30, 2021
@fratzinger fratzinger deleted the patch-1 branch July 31, 2021 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0