Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

docs(dag): signify optional params and do it consistently #322

Merged
merged 1 commit into from
Jul 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SPEC/DAG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

##### `Go` **WIP**

##### `JavaScript` - ipfs.dag.put(dagNode, options, callback)
##### `JavaScript` - ipfs.dag.put(dagNode, [options], [callback])

- `dagNode` - a DAG node that follows one of the supported IPLD formats.
- `options` - a object that might contain the following values:
Expand Down Expand Up @@ -48,7 +48,7 @@ A great source of [examples][] can be found in the tests for this API.

##### `Go` **WIP**

##### `JavaScript` - ipfs.dag.get(cid [, path, options], callback)
##### `JavaScript` - ipfs.dag.get(cid, [path], [options], [callback])

- `cid` - can be one of the following:
- a [CID](https://github.com/ipfs/js-cid) instance.
Expand Down Expand Up @@ -119,7 +119,7 @@ A great source of [examples][] can be found in the tests for this API.

##### `Go` **WIP**

##### `JavaScript` - ipfs.dag.tree(cid [, path, options], callback)
##### `JavaScript` - ipfs.dag.tree(cid, [path], [options], [callback])

- `cid` - can be one of the following:
- a [CID](https://github.com/ipfs/js-cid) instance.
Expand Down