Skip to content

Documentation Issues #362

Open
Open
@justinbmeyer

Description

@justinbmeyer

can-define

  • Needs a purpose section.
  • Probably could show use of [can-observation].

can-define.types.html

  • codepen-able ES6 examples
  • Links to can-define-types.

can-define.types.propDefinition.html

  • @codepen examples
  • default option shows the old value.
  • type should give a hint at what should be done.
  • serialize might want to show false option.
  • identity might want to reference that this is used by can-reflect.getSchema and the models.
  • String -> needs an example
  • function() Array GETTER - needs better examples
  • Code following "Within a property definition," isn't js.
  • Might want to specify order -> TYPE -> SETTER -> GETTER. Also how default() will use the type.

can-define.types.valueOptions.html

  • ValueOptions doesn't really say what it relates to. No description.
  • Nothing in signature.
  • Needs to be code-penable.

can-define.types.default.html

  • defined on demand (lazily)
  • might want to talk about how these will go through type and set. (
  • codepen

can-define.types.defaultConstructor.html

  • Use section should explain what it's doing
  • codepen

can-define.types.get.html

  • read on a define map
  • like can-observation
  • might want to say DON'T set state in a get()
  • is the shorthand mentioned?
  • Typically, lastSetValue should be an observable value, like a can-compute or promise. If it's not, it's likely that a set should be used instead. Is this accurate?
  • Why "virtual properties"? Maybe computed properties?
  • might want to mention value as the place where get() isn't able to derive the value.
  • codepen examples
  • complete review (I, justinbmeyer, has not completed it)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions