Commit 77824630 authored by nanahira's avatar nanahira

EntityId

parent dd6db4f4
Pipeline #7169 passed with stages
in 1 minute and 7 seconds
......@@ -16,11 +16,7 @@ import { QueryWise } from '../entities/interfaces/QueryWise';
import { camelCase } from 'typeorm/util/StringUtils';
import { DeletionWise } from '../entities/bases/TimeBase.entity';
export type EntityId<T> = T extends { id: string }
? string
: T extends { id: number }
? number
: never;
export type EntityId<T extends { id: any }> = T['id'];
export class CrudBase<
T extends Record<string, any> & {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment