We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403414c commit 7a2c65dCopy full SHA for 7a2c65d
src/options/classes.js
@@ -4,7 +4,7 @@ import { removeUndefined } from './default.js'
4
5
// `options.classes.{ErrorName}.*` is like `options.*` but only applies if
6
// `error.name` matches.
7
-export const applyClassesOpts = ({ name }, opts = {}) => {
+export const applyClassesOpts = (name, opts = {}) => {
8
if (!isPlainObj(opts)) {
9
throw new Error(`options must be a plain object: ${opts}`)
10
}
0 commit comments