Skip to content

Commit

Permalink
refactor: strict Promise configuration validation
Browse files Browse the repository at this point in the history
- updates configuration schema to use `"instanceof": "Promise"` (#258)
- depends on (webpack/webpack#6430)
  • Loading branch information
Joe Bottigliero committed Mar 1, 2018
1 parent 191b458 commit 8750ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemas/webpackConfigurationSchema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"oneOf": [
"anyOf": [
{
"type": "object",
"description": "A webpack configuration object."
Expand All @@ -13,7 +13,7 @@
}
},
{
"instanceof": "Function",
"instanceof": "Promise",
"description": "A promise that resolves with a configuration object, or an array of configuration objects."
}
]
Expand Down

0 comments on commit 8750ec4

Please sign in to comment.