Skip to content

Commit

Permalink
chore: only export types from types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed May 29, 2024
1 parent 2683815 commit 726a0e1
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/dipProof/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./types.js"

export * as timeBoundDidSignature from "./timeBoundDidSignature.js"
7 changes: 6 additions & 1 deletion src/dipProof/extensions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./timeBoundDidSignature.js"
export type {
TimeBoundDidSignatureConsumerOpts,
TimeBoundDidSignatureOpts,
TimeBoundDidSignatureProviderOpts,
TimeBoundDidSignatureRes,
} from "./timeBoundDidSignature.js"
2 changes: 0 additions & 2 deletions src/dipProof/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./types.js"

export * from "./subjectIdentity.js"
export * as extensions from "./extensions/index.js"
5 changes: 4 additions & 1 deletion src/dipProof/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./subjectIdentity.js"
export type {
DipIdentityProofOpts,
DipIdentityProofRes,
} from "./subjectIdentity.js"
export type * from "./extensions/types.js"
2 changes: 0 additions & 2 deletions src/stateProof/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./types.js"

export * from "./providerStateRoot.js"
export * from "./subjectDipCommitment.js"
10 changes: 8 additions & 2 deletions src/stateProof/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./providerStateRoot.js"
export type * from "./subjectDipCommitment.js"
export type {
ProviderStateRootProofOpts,
ProviderStateRootProofRes,
} from "./providerStateRoot.js"
export type {
DipCommitmentProofOpts,
DipCommitmentProofRes,
} from "./subjectDipCommitment.js"
10 changes: 7 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* found in the LICENSE file in the root directory of this source tree.
*/

export type * from "./stateProof/index.js"
export type * from "./dipProof/index.js"
export type * from "./sibling.js"
export type * from "./stateProof/types.js"
export type * from "./dipProof/types.js"
export type {
DipSiblingBaseProofInput,
DipSiblingBaseProofRes,
GenerateDipSubmittableExtrinsicInput,
} from "./sibling.js"

0 comments on commit 726a0e1

Please sign in to comment.