diff --git a/src/db/connector.ts b/src/db/connector.ts index fc6b74fddf1ef2c721d80b07405ba51fabc26630..d247db60dcc914e95f3efb65ba3ac9b8ac84f200 100644 --- a/src/db/connector.ts +++ b/src/db/connector.ts @@ -14,12 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. */ +type SQLTYPES = number | boolean | string | null; + export interface ISqlCommandParameters { - [paramKey: string]: number | boolean | string | Promise<number | boolean | string>; + [paramKey: string]: SQLTYPES | Promise<SQLTYPES>; } export interface ISqlRow { - [key: string]: number | boolean | string; + [key: string]: SQLTYPES; } export interface IDatabaseConnector {