UNPKG

@robinbobin/mimetype-constants

Version:

Extensible MIME constants with typescript support

4 lines (3 loc) 240 B
type TSubtypeGroup<TSubtype extends string> = Readonly<Record<TSubtype, string>>; type TTypeGroup<TType extends string, TSubtype extends string> = Readonly<Record<TType, TSubtypeGroup<TSubtype>>>; export type { TSubtypeGroup, TTypeGroup };