Skip to content

Commit

Permalink
Fix: Colony V12 client ignore complex TS union type
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Feb 13, 2023
1 parent 84f454e commit b3a3506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clients/Colony/ColonyClientV12.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import { addEncodeInterfaces } from './interfaces/encodeInterfacesV12';
import { getAllAbiEvents, getAbiFunctions } from '../../utils';
import { ColonyVersion } from '../../versions';

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
type ColonyExtensions = Omit<
ExtendedIColony<IColony>,
'moveFundsBetweenPotsWithProofs'
Expand All @@ -57,6 +59,8 @@ type ColonyExtensions = Omit<
ColonyExtensionsV11<PreviousIColony> &
ColonyExtensionsV12<IColony>;

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
export type ColonyClientV12 = ColonyExtensions & {
clientVersion: ColonyVersion.GreenLightweightSpaceshipThree;
estimate: ExtendedIColony<IColony>['estimate'] & ExtendedEstimateV12;
Expand Down

0 comments on commit b3a3506

Please sign in to comment.