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

Expanded shape/schema reflection #107

Open
justinbmeyer opened this issue Apr 11, 2018 · 0 comments
Open

Expanded shape/schema reflection #107

justinbmeyer opened this issue Apr 11, 2018 · 0 comments

Comments

@justinbmeyer
Copy link
Contributor

justinbmeyer commented Apr 11, 2018

.getInstanceKeyDesriptor(Type, "key")

{
  get // if there's a getter function
  set, // if there's a setter function
  default, // default value
  enumerable, // if enumerable
  type, // a type specifier
  identity // if one of the uniquely identifying properties
}

.getKeyDesriptor(value, "key")

{
  get // if there's a getter function
  set, // if there's a setter function
  value, // value
  enumerable, // if enumerable
  type, // a type specifier
  identity // if one of the uniquely identifying properties
}

Type specifier

{
  new, // create a new value of this type
  isMember, // test if a value is a member of this type
  SetType // a type used to represent sets of this type
  kind // "map", "list", "string", "boolean", "number", "date"
}

Questions

  • Should these be own[]? I think own would be faster, but we'd always need everything on the proto chain.
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