Skip to content

Commit

Permalink
Added typeVersions and also exported a needed type (#4241)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadepo authored and wemeetagain committed Jul 5, 2022
1 parent 4111a28 commit 0b4c4bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/light-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@
}
},
"types": "./lib/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"lib/*",
"lib/*/index"
]
}
},
"files": [
"lib/**/*.d.ts",
"lib/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/light-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ import {GenesisData} from "./networks.js";
import {getLcLoggerConsole, ILcLogger} from "./utils/logger.js";
import {computeSyncPeriodAtEpoch, computeSyncPeriodAtSlot, computeEpochAtSlot} from "./utils/clock.js";

// Re-export event types
// Re-export types
export {LightclientEvent} from "./events.js";
export {SyncCommitteeFast} from "./types.js";

export type LightclientInitArgs = {
config: IChainForkConfig;
Expand Down

0 comments on commit 0b4c4bf

Please sign in to comment.