Skip to content

Commit e719bcd

Browse files
committed
Simplify EncryptionOptions type
1 parent 05acbae commit e719bcd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/web/src/db/PowerSyncDatabase.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ export interface WebEncryptionOptions {
6666
encryptionKey?: string;
6767
}
6868

69-
type WithWebEncryptionOptions<Base> = Base & {
70-
/**
71-
* Encryption key for the database.
72-
* If set, the database will be encrypted using Multiple Ciphers.
73-
*/
74-
encryptionKey?: string;
75-
};
69+
type WithWebEncryptionOptions<Base> = Base & WebEncryptionOptions;
7670

7771
export type WebPowerSyncDatabaseOptionsWithAdapter = WithWebSyncOptions<
7872
WithWebFlags<PowerSyncDatabaseOptionsWithDBAdapter>

0 commit comments

Comments
 (0)