Skip to content

Commit

Permalink
[#176261561] Remove useless type PrivateAggregatorExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnedMarshal committed Jan 5, 2021
1 parent 6820953 commit bff32a3
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/utils/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ const CommonExtension = t.partial({
});
type CommonExtension = t.TypeOf<typeof CommonExtension>;

const PrivateAggregatorExtension = t.union([
t.interface({
aggregatorType: t.literal(AggregatorType.PrivateServicesFullAggregator)
}),
t.interface({
aggregatorCert: t.string,
aggregatorType: t.literal(AggregatorType.PrivateServicesLightAggregator)
})
]);
type PrivateAggregatorExtension = t.TypeOf<typeof PrivateAggregatorExtension>;

export const LightAggregatorExtension = t.intersection([
t.interface({
aggregatorCert: t.string,
Expand All @@ -80,7 +69,9 @@ export const LightAggregatorExtension = t.intersection([
}),
CommonExtension
]);
type LightAggregatorExtension = t.TypeOf<typeof LightAggregatorExtension>;
export type LightAggregatorExtension = t.TypeOf<
typeof LightAggregatorExtension
>;

const AggregatorExtension = t.intersection([
t.union([
Expand Down

0 comments on commit bff32a3

Please sign in to comment.