Skip to content

Commit 25e8abe

Browse files
authored
Export ConfigError class as value, not as type (#522)
2 parents 175835c + 6b52b76 commit 25e8abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export { supportedDialects, format, formatDialect } from './sqlFormatter.js';
22
export { expandPhrases } from './expandPhrases.js';
3+
export { ConfigError } from './validateConfig.js';
34

45
// Intentionally use "export *" syntax here to make sure when adding a new SQL dialect
56
// we wouldn't forget to expose it in our public API.
@@ -20,4 +21,3 @@ export type {
2021
FormatOptions,
2122
} from './FormatOptions.js';
2223
export type { DialectOptions } from './dialect.js';
23-
export type { ConfigError } from './validateConfig.js';

0 commit comments

Comments
 (0)