Skip to content

Commit 5ef79de

Browse files
committed
Fix the exported SqlLanguage map type
It had mistakenly be changed to plain string. Now it's again a proper union of possible dialect names.
1 parent 2303972 commit 5ef79de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createDialect, DialectOptions } from './dialect.js';
55
import Formatter from './formatter/Formatter.js';
66
import { ConfigError, validateConfig } from './validateConfig.js';
77

8-
const dialectNameMap: Record<string, keyof typeof allDialects> = {
8+
const dialectNameMap: Record<keyof typeof allDialects | 'tsql', keyof typeof allDialects> = {
99
bigquery: 'bigquery',
1010
db2: 'db2',
1111
db2i: 'db2i',

0 commit comments

Comments
 (0)