-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom asynchronous deserialization #85
Changes from 8 commits
d668510
2b154f7
d9c6a39
a942bfa
dbe85c9
97a818c
27e5a4c
5e56e0a
42343a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,4 @@ | |
"typescript": "^2.1.4", | ||
"uglify-js": "^2.6.4" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,9 @@ export function map(propSchema: PropSchema): PropSchema; | |
|
||
export function mapAsArray(propSchema: PropSchema, keyPropertyName: string): PropSchema; | ||
|
||
export function custom(serializer: (value: any) => any, deserializer: (jsonValue: any) => any): PropSchema; | ||
export function custom(serializer: (value: any) => any, deserializer: (jsonValue: any, context?: any, oldValue?: any) => any): PropSchema; | ||
export function custom(serializer: (value: any) => any, deserializer: (jsonValue: any, context: any, oldValue: any, callback: (err: any, result: any) => void) => any): PropSchema; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An empty line break for readability? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. currently, line breaks are only between different functions, not signature alternatives. We just introduced the latter with the final version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 Your explanation is reasonable. |
||
|
||
export function serializeAll<T extends Function>(clazz: T): T | ||
|
||
export const SKIP: {} | ||
export const SKIP: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update of
README.md
is caused by theprepublish
script declared in thepackage.json
. All the links have been replaced with which related to you. You should discard the update of this. I will keep the readme being changed accidentally someday.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since I updated the docs for the custom propschema, the prepublish scripts needs to run to generate the respective readme chapter. Since I cannot do this for the official repo, maybe you can pull, run prepublish and commit the final readme before publishing to npm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah ~ I and @alexggordon can do this after your PR merged.