graphile/pg-aggregates

Too few types are exported in V5 plugin

benjie opened this issue · 1 comments

benjie commented

Types here:

https://github.com/graphile/pg-aggregates/blob/v5/src/interfaces.ts

Not exported here:

https://github.com/graphile/pg-aggregates/blob/v5/src/index.ts

Definitely need AggregateSpec.

declare global {
  // eslint-disable-next-line @typescript-eslint/no-namespace
  namespace DataplanPg {
    interface PgCodecExtensions {
      isNumberLikeOrTimestamp: boolean;
    }
  }
  // FIXME: use GraphileBuild.Build extended by @graphile/pg-aggregates
  // eslint-disable-next-line @typescript-eslint/no-namespace
  namespace GraphileBuild {
    interface Build {
      pgAggregateSpecs: AggregateSpec[];
    }
  }
}
benjie commented

Fixed in b61c601