Skip to content
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

add SerializableObject type #15

Open
uladkasach opened this issue Jul 8, 2023 · 1 comment
Open

add SerializableObject type #15

uladkasach opened this issue Jul 8, 2023 · 1 comment

Comments

@uladkasach
Copy link
Member

uladkasach commented Jul 8, 2023

/**
 * an object that can be serialized, for example with JSON.stringify
 */
type SerializableObject =
  | string
  | number
  | boolean
  | null
  | undefined
  | { [property: string]: SerializableObject }
  | SerializableObject[];
@uladkasach
Copy link
Member Author

may need to add support for

  | DomainObject<any>

specifically, since for some reason they dont naturally cast to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant