ReferenceMap: {
    [typeName: string]: {
        fields?: {
            [fieldName: string]: NonNullable<ReturnType<typeof getFieldForReference>>;
        };
        type: NonNullable<ReturnType<typeof getTypeForReference>>;
    };
}