Skip to content

Commit

Permalink
fix: improve obfuscateDocument function type
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Nov 20, 2019
1 parent b630af9 commit e6b4d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/privacy/privacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const obfuscateData = (_data: any, fields: string[] | string) => {
};
};

export const obfuscateDocument = (document: SignedDocument, fields: any): SignedDocument => {
export const obfuscateDocument = (document: SignedDocument, fields: string[] | string): SignedDocument => {
const existingData = document.data;
const { data, obfuscatedData } = obfuscateData(existingData, fields);

Expand Down

0 comments on commit e6b4d8a

Please sign in to comment.