Skip to content

Commit 6297275

Browse files
committed
fix(errors): StateError: fix type for "wantedStates"
1 parent d3e796f commit 6297275

File tree

1 file changed

+1
-1
lines changed
  • packages/mongodb-memory-server-core/src/util

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isNullOrUndefined } from './utils';
22

33
export class StateError extends Error {
4-
constructor(public wantedStates: [string], public gotState: string) {
4+
constructor(public wantedStates: string[], public gotState: string) {
55
super(
66
`Incorrect State for operation: "${gotState}", allowed States: "[${wantedStates.join(',')}]"`
77
);

0 commit comments

Comments
 (0)