Improve Model class' rehydratable implementation

This commit is contained in:
garrettmills
2020-07-28 09:35:11 -05:00
parent a27618d5a3
commit 48f5da1747
2 changed files with 64 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
export type JSONState = { [key: string]: string | boolean | number | JSONState | Array<string | boolean | number | JSONState> }
export type JSONState = { [key: string]: string | boolean | number | undefined | JSONState | Array<string | boolean | number | undefined | JSONState> }
export function isJSONState(what: any): what is JSONState {
try {