export interface TypeAndOptions { type: Y; options?: T[Y]; }