Skip to content

Commit

Permalink
expose getIdentifierProperty() for custom serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
nros committed Nov 8, 2017
1 parent 2d9354d commit a80c0c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions serializr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ export function custom(serializer: (value: any, sourcePropertyName?: string, sou

export function serializeAll<T extends Function>(clazz: T): T

export function getIdentifierProperty(modelSchema: ClazzOrModelSchema<any>): string;
export const SKIP: {}
1 change: 1 addition & 0 deletions src/serializr.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export { default as list } from "./types/list"
export { default as map } from "./types/map"
export { default as mapAsArray } from "./types/mapAsArray"

export { getIdentifierProp as getIdentifierProperty } from "./utils/utils";
export { SKIP } from "./constants"

// deprecated
Expand Down

0 comments on commit a80c0c0

Please sign in to comment.