Skip to content

Add type checking for config options #673

Closed

Description

@Hadis-Fard

Some of the config options could be set to anything, there should be a type checking before passing it on to the connection. For example, abortTransactionOnError is checked to be boolean and ColumnReplacer is checked to be function.

Activity

  1. changed the title [-]Add type check for config options[/-] [+]Add type checking for config options[/+] on Jan 4, 2018
  2. arthurschreiber commented on Jan 4, 2018

    @arthurschreiber
    Collaborator

    👍 Yup, ideally we would type check all fields passed in by our users to conform to what we expect them to pass in. This is related, but orthogonal to the work of adding flow type annotations to the source.

  3. IanChokS commented on Dec 17, 2019

    @IanChokS
    Member

    This has been done now that the project is in TypeScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions