Skip to content

Commit 60d47bb

Browse files
committed
Improve error validation
1 parent 1aa9bb5 commit 60d47bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export type { Options }
99
const getOptions = (options: Options = {}) => {
1010
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1111
validateOptions(options)
12+
13+
if (options.classes !== undefined) {
14+
throw new TypeError('"classes" must not be defined.')
15+
}
16+
1217
return options
1318
}
1419

0 commit comments

Comments
 (0)