Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Dec 6, 2021
1 parent 9803577 commit bd2363f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/models/overrides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@ import { AnyProperty } from "./properties";
import { EntitySchema } from "./entities";
import { EntityCollection } from "./collections";

export type PartialProperties<M> = Record<any, Partial<AnyProperty>>;
/**
* Use to resolve the schema properties for specific path, entity id or values.
* @category Models
*/
export type PartialProperties<M> = Record<keyof M, Partial<AnyProperty>>;

/**
* Use to resolve the schema properties for specific path, entity id or values.
* @category Models
*/
export type PartialSchema<M> = Omit<Partial<EntitySchema<M>>, "properties"> &
{
properties: PartialProperties<M>
};


/**
* Use to resolve the schema properties for specific path, entity id or values.
* @category Models
*/
export type PartialEntityCollection<M> =
Omit<Partial<EntityCollection<M>>, "schema"> & {
schema?: PartialSchema<M>
Expand Down

0 comments on commit bd2363f

Please sign in to comment.