-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: eliminate ts-ignores by defining file reated types
- Loading branch information
1 parent
6718489
commit 230af91
Showing
7 changed files
with
61 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export type EncryptedDataType = { | ||
data: ArrayBufferLike; | ||
metadata: ArrayBufferLike | null; | ||
data: ArrayBuffer; | ||
metadata: ArrayBuffer | null; | ||
}; | ||
|
||
export interface ICryptor { | ||
get identifier(): string; | ||
encrypt(data: BufferSource): Promise<EncryptedDataType>; | ||
decrypt(data: EncryptedDataType): Promise<ArrayBufferLike>; | ||
encrypt(data: ArrayBuffer): Promise<EncryptedDataType>; | ||
decrypt(data: EncryptedDataType): Promise<ArrayBuffer>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters