UNPKG

@stencila/schema

Version:

Stencila schema and other specifications

12 lines (11 loc) 274 B
import { Entity } from '../types'; export declare type TypeMap<T extends Entity = Entity> = { [key in T['type']]: key; }; export declare type TypeMapGeneric<T extends { type: string; } & object = { type: string; }> = { [key in T['type']]: key; };