oneuptime/CommonUI/src/Utils/BaseDatabase/GroupBy.ts

10 lines
310 B
TypeScript
Raw Normal View History

import AnalyticsDataModel from 'Common/AnalyticsModels/BaseModel';
import BaseModel from 'Common/Models/BaseModel';
import { JSONObject } from 'Common/Types/JSON';
type GroupBy<TBaseModel extends AnalyticsDataModel | BaseModel | JSONObject> = {
[P in keyof TBaseModel]?: true;
};
export default GroupBy;