Clojurians
#cljs-dev
<
2016-01-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mfikes22:01:52

Pondering a patch to expand the docstring for extend-type that would add copy like the below

type-sym may be
   * default, meaning the definitions will apply for any value, unless an extend-type exists for one of the more specific cases below.
   * nil, meaning the definitions will apply for the nil value.
   * any of object, boolean, number, string, array, or function, indicating the definitions will apply for values of the associated base JavaScript types. Note that, for example, string should be used instead of js/String.
   * a JavaScript type not covered by the previous list, such as js/RegEx.
   * a type defined by deftype.
Thought I'd mention here before JIRA for feedback of accuracy and suitability.

mfikes23:01:36

One correction to the last bullet: deftype or defrecord.

dnolen23:01:43

@mfikes something like that would be welcome