Skip to content

Expanded shape/schema reflection #107

@justinbmeyer

Description

@justinbmeyer

.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions