mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
7 lines
255 B
TypeScript
7 lines
255 B
TypeScript
|
import { Infer, Struct } from 'superstruct';
|
||
|
|
||
|
export type Unique<Element extends Struct<any>> = (
|
||
|
struct: Struct<Infer<Element>[], Infer<Element>>,
|
||
|
eq?: (a: Infer<Element>, b: Infer<Element>) => boolean,
|
||
|
) => Struct<Infer<Element>[], Infer<Element>>;
|