common.ts 205 B

1234567891011
  1. /*
  2. * Common types and interfaces
  3. */
  4. import { HasObjectId } from './has-object-id';
  5. // Foreign key field
  6. export type Ref<T> = string | T & HasObjectId;
  7. export type Nullable<T> = T | null | undefined;