From 53395939c83be4297d7b8b4f2e32b40fddde3f2b Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 7 Jul 2021 15:57:23 -0700 Subject: [PATCH] Add undefined to optional properties, part H (#54355) * Add undefined to optional properties, part H In preparation for exactOptionalPropertyTypes in Typescript 4.4, add undefined to all optional properties. #no-publishing-comment This PR covers non-widely used packages starting with h- and following. microsoft/dtslint#335 * shorten line lengths --- types/keyv__mongo/index.d.ts | 8 ++++---- types/keyv__mysql/index.d.ts | 8 ++++---- types/keyv__postgres/index.d.ts | 8 ++++---- types/keyv__redis/index.d.ts | 4 ++-- types/keyv__sqlite/index.d.ts | 10 +++++----- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/types/keyv__mongo/index.d.ts b/types/keyv__mongo/index.d.ts index f468f35..43be080 100644 --- a/types/keyv__mongo/index.d.ts +++ b/types/keyv__mongo/index.d.ts @@ -13,7 +13,7 @@ export = KeyvMongo; declare class KeyvMongo extends EventEmitter implements Store { readonly ttlSupport: false; - namespace?: string; + namespace?: string | undefined; constructor(uri?: string); constructor(options?: KeyvMongo.Options); // tslint:disable-line:unified-signatures @@ -26,8 +26,8 @@ declare class KeyvMongo extends EventEmitter implements Store { declare namespace KeyvMongo { interface Options { - uri?: string; - url?: string; - collection?: string; + uri?: string | undefined; + url?: string | undefined; + collection?: string | undefined; } } diff --git a/types/keyv__mysql/index.d.ts b/types/keyv__mysql/index.d.ts index 4aef9d0..dbef84f 100644 --- a/types/keyv__mysql/index.d.ts +++ b/types/keyv__mysql/index.d.ts @@ -13,7 +13,7 @@ export = KeyvMysql; declare class KeyvMysql extends EventEmitter implements Store { readonly ttlSupport: false; - namespace?: string; + namespace?: string | undefined; constructor(uri?: string); constructor(options?: KeyvMysql.Options); // tslint:disable-line:unified-signatures @@ -26,8 +26,8 @@ declare class KeyvMysql extends EventEmitter implements Store { readonly ttlSupport: false; - namespace?: string; + namespace?: string | undefined; constructor(options?: KeyvPostgres.Options); @@ -25,8 +25,8 @@ declare class KeyvPostgres extends EventEmitter implements Store { readonly ttlSupport: true; - namespace?: string; + namespace?: string | undefined; constructor(options?: KeyvRedis.Options); constructor(uri: string, options?: KeyvRedis.Options); @@ -27,6 +27,6 @@ declare class KeyvRedis extends EventEmitter implements Store { readonly ttlSupport: false; - namespace?: string; + namespace?: string | undefined; constructor(options?: KeyvSqlite.Options); @@ -25,9 +25,9 @@ declare class KeyvSqlite extends EventEmitter implements Store