Skip to content

Commit

Permalink
feat: export identity interface (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminlim00 authored Mar 30, 2020
1 parent 0522dcf commit f09339a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { v2, v3, WrappedDocument } from "@govtechsg/open-attestation";
import { verificationBuilder } from "./verifiers/verificationBuilder";
import { Verifier } from "./types/core";
import { openAttestationHash } from "./verifiers/hash/openAttestationHash";
import { openAttestationDnsTxt } from "./verifiers/dnsText/openAttestationDnsTxt";
import { openAttestationDnsTxt, Identity } from "./verifiers/dnsText/openAttestationDnsTxt";
import { openAttestationEthereumDocumentStoreIssued } from "./verifiers/documentStoreIssued/openAttestationEthereumDocumentStoreIssued";
import { openAttestationEthereumDocumentStoreRevoked } from "./verifiers/documentStoreRevoked/openAttestationEthereumDocumentStoreRevoked";
import { isValid } from "./validator";
Expand All @@ -28,6 +28,7 @@ export {
isValid,
verify,
Verifier,
Identity,
openAttestationHash,
openAttestationEthereumDocumentStoreRevoked,
openAttestationEthereumDocumentStoreIssued,
Expand Down
2 changes: 1 addition & 1 deletion src/verifiers/dnsText/openAttestationDnsTxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { utils } from "ethers";
import { isWrappedV2Document, VerificationFragmentType, VerificationManagerOptions, Verifier } from "../../types/core";
import { OpenAttestationDnsTxtCode } from "../../types/error";

interface Identity {
export interface Identity {
status: "VALID" | "INVALID" | "SKIPPED";
location?: string;
value?: string;
Expand Down

0 comments on commit f09339a

Please sign in to comment.