Skip to content

Commit bb6393a

Browse files
lifeiscontentdhensby
authored andcommitted
fix: update return types for parsers
make type a bit more predictable if you think this is not the right type a recommendation would be to use Record<string, unknown>
1 parent 4688a37 commit bb6393a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser/sql-connection-string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function validate(value: string | number | boolean, allowedValues?: (string | nu
272272
}
273273

274274
// eslint-disable-next-line @typescript-eslint/no-unused-vars
275-
export default function parseSqlConnectionString(connectionString: string, canonicalProps = false, allowUnknown = false, strict = false, schema: SchemaDefinition = SCHEMA) {
275+
export default function parseSqlConnectionString(connectionString: string, canonicalProps = false, allowUnknown = false, strict = false, schema: SchemaDefinition = SCHEMA): Record<string, string | number | boolean> {
276276
const flattenedSchema = Object.entries(schema).reduce((flattened: SchemaDefinition, [key, item]) => {
277277
Object.assign(flattened, {
278278
[key.toLowerCase()]: item,

0 commit comments

Comments
 (0)