1
0
Fork 0
forked from specter/mastodon
mastodon/app/javascript/types/util.ts

8 lines
210 B
TypeScript
Raw Normal View History

export interface MastodonMap<T> {
get<K extends keyof T>(key: K): T[K];
has<K extends keyof T>(key: K): boolean;
set<K extends keyof T>(key: K, value: T[K]): this;
}
export type ValueOf<T> = T[keyof T];