Skip to content

Commit

Permalink
[FEAT] Adding a TS interface for serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
pliljegr committed May 21, 2019
1 parent a90b6ce commit 695d30d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/store/addon/-private/ts-interfaces/serializer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
JsonApiResource
} from './record-data-json-api';
export default interface Serializer {
store: any;
normalizeResponse(store: any, primaryModelClass: any, payload: JsonApiResource, id: string | number, requestType: string): any;
serialize(typeClass: any, hash: object): object;
}

0 comments on commit 695d30d

Please sign in to comment.