UNPKG

@tevm/actions

Version:

A typesafe library for writing forge scripts in typescript

7 lines (6 loc) 196 B
/** * Helper type to ensure exactly one property from a set is provided */ export type ExactlyOne<T, K extends keyof T> = { [P in K]: { [Q in P]: T[P] } & { [Q in Exclude<K, P>]?: never } }[K]