Skip to content

Commit

Permalink
fix: oa v4 type guard (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
HJunyuan authored Sep 8, 2023
1 parent 988830b commit 9ea9211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const isV3Document = (document: any): document is v3.OpenAttestationDocum
};

export const isV4Document = (document: unknown): document is v4.OpenAttestationDocument =>
utils.isWrappedV4Document(document) || utils.isSignedWrappedV4Document(document);
utils.isRawV4Document(document);

const getTemplateName = (document: OpenAttestationDocument): string => {
if (isV2Document(document) && typeof document.$template === "object") {
Expand Down

0 comments on commit 9ea9211

Please sign in to comment.