Skip to content

Commit

Permalink
Simplify EncryptionOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Dec 12, 2024
1 parent 05acbae commit e719bcd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/web/src/db/PowerSyncDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ export interface WebEncryptionOptions {
encryptionKey?: string;
}

type WithWebEncryptionOptions<Base> = Base & {
/**
* Encryption key for the database.
* If set, the database will be encrypted using Multiple Ciphers.
*/
encryptionKey?: string;
};
type WithWebEncryptionOptions<Base> = Base & WebEncryptionOptions;

export type WebPowerSyncDatabaseOptionsWithAdapter = WithWebSyncOptions<
WithWebFlags<PowerSyncDatabaseOptionsWithDBAdapter>
Expand Down

0 comments on commit e719bcd

Please sign in to comment.