| 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 | {}; |
no outgoing calls
no test coverage detected
searching dependent graphs…