Skip to content

Commit

Permalink
docs: ✏️ update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Sep 8, 2023
1 parent 838ba71 commit 49c2150
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/plugin-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ Output:
#### Parameters

- `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `identifier` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

Expand Down Expand Up @@ -1248,7 +1249,7 @@ Output:

- `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path (optional, default `value`)
- `aggregate` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** aggregate all values for all paths (or not) (optional, default `true`)
- `identifier` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)
- `identifier` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

Expand Down
3 changes: 2 additions & 1 deletion packages/analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ Output:
#### Parameters

- `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `identifier` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

Expand Down Expand Up @@ -1248,7 +1249,7 @@ Output:

- `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path (optional, default `value`)
- `aggregate` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** aggregate all values for all paths (or not) (optional, default `true`)
- `identifier` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)
- `identifier` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path to use to set value result field (if not set or not exists, 1 is use as a default value) (optional, default `false`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

Expand Down
1 change: 1 addition & 0 deletions packages/analytics/src/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import core from './core';
*
* @name graph
* @param {String} path
* @param {String} [identifier=false] path to use to set value result field (if not set or not exists, 1 is use as a default value)
* @returns {Object}
*/
export default function graph(data, feed) {
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import core from './core';
* @name segment
* @param {String} [path=value] path
* @param {Boolean} [aggregate=true] aggregate all values for all paths (or not)
* @param {Boolean} [identifier=false] path to use to set value result field (if not set or not exists, 1 is use as a default value)
* @param {String} [identifier=false] path to use to set value result field (if not set or not exists, 1 is use as a default value)
* @returns {Object}
*/
export default function segment(data, feed) {
Expand Down

0 comments on commit 49c2150

Please sign in to comment.