Skip to main content Link Search Menu Expand Document (external link)

MetricPair overview

Added in v2.0.0


Table of contents


constructors

make

Signature

export declare const make: <Type extends MetricKeyType.MetricKeyType<any, any>>(
  metricKey: MetricKey.MetricKey<Type>,
  metricState: MetricState.MetricState<MetricKeyType.MetricKeyType.OutType<Type>>
) => MetricPair.Untyped

Added in v2.0.0

model

MetricPair (interface)

Signature

export interface MetricPair<out Type extends MetricKeyType.MetricKeyType<any, any>>
  extends MetricPair.Variance<Type>,
    Pipeable {
  readonly metricKey: MetricKey.MetricKey<Type>
  readonly metricState: MetricState.MetricState<MetricKeyType.MetricKeyType.OutType<Type>>
}

Added in v2.0.0

symbols

MetricPairTypeId

Signature

export declare const MetricPairTypeId: typeof MetricPairTypeId

Added in v2.0.0

MetricPairTypeId (type alias)

Signature

export type MetricPairTypeId = typeof MetricPairTypeId

Added in v2.0.0

unsafe

unsafeMake

Signature

export declare const unsafeMake: <Type extends MetricKeyType.MetricKeyType<any, any>>(
  metricKey: MetricKey.MetricKey<Type>,
  metricState: MetricState.MetricState.Untyped
) => MetricPair.Untyped

Added in v2.0.0

utils

MetricPair (namespace)

Added in v2.0.0

Untyped (interface)

Signature

export interface Untyped extends MetricPair<MetricKeyType.MetricKeyType<any, any>> {}

Added in v2.0.0

Variance (interface)

Signature

export interface Variance<out Type extends MetricKeyType.MetricKeyType<any, any>> {
  readonly [MetricPairTypeId]: {
    readonly _Type: Types.Covariant<Type>
  }
}

Added in v2.0.0