MCPcopy
hub / github.com/miragejs/miragejs / SerializerInterface

Interface SerializerInterface

types/index.d.ts:724–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722 import Schema from "miragejs/orm/schema";
723
724 interface SerializerInterface {
725 schema?: Schema<any>;
726 attrs?: any;
727 embed?: boolean | ((key: string) => boolean);
728 root?: any;
729 serializeIds?: any;
730 include?: any;
731 keyForAttribute?(attr: any): any;
732 keyForCollection?(modelName: any): any;
733 keyForEmbeddedRelationship?(attributeName: any): any;
734 keyForForeignKey?(relationshipName: any): any;
735 keyForModel?(modelName: any): any;
736 keyForPolymorphicForeignKeyId?(relationshipName: string): string;
737 keyForPolymorphicForeignKeyType?(relationshipName: string): string;
738 keyForRelationship?(modelName: any): any;
739 keyForRelationshipIds?(modelName: any): any;
740 normalize?(json: any): any;
741 serialize?(primaryResource: any, request: any): any;
742 extend?(param?: SerializerInterface): SerializerInterface;
743 }
744
745 class Serializer implements SerializerInterface {
746 static extend(param?: SerializerInterface | {}): SerializerInterface | {};

Callers 13

normalizeMethod · 0.65
serializeMethod · 0.65
serializeMethod · 0.65
serializeMethod · 0.65
serialize-test.jsFile · 0.65

Implementers 1

Serializertypes/index.d.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…