Skip to content

Commit

Permalink
readme typo, order of imports
Browse files Browse the repository at this point in the history
  • Loading branch information
taburetkin committed May 17, 2019
1 parent c529ae6 commit 887f9f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async () => {
and how it can be done with asyncresult-js

```js
import { wrapMethod } from "asyncresult";
import { wrapMethod } from 'asyncresult-js';
// wrapping methods with special util
const fetchSomethingAsync = wrapMethod(fetchSomething);
const fetchSomethingElseAsync = wrapMethod(fetchSomethingElse);
Expand Down Expand Up @@ -142,7 +142,7 @@ yarn add asyncresult-js
example

```js
import { AsyncResult } from "asyncresult-js";
import { AsyncResult } from 'asyncresult-js';
let r1 = new AsyncResult(null, "foo"); // same as AsyncResult.success('foo')
console.log(r1.isError()); // false
console.log(r1.val()); // 'foo'
Expand All @@ -163,7 +163,7 @@ console.log(r1.err()); // 'foo'
examples

```js
import { toAsyncResult } from "asyncresult-js";
import { toAsyncResult } from 'asyncresult-js';

// assume we are in some async context
async () => {
Expand All @@ -189,7 +189,7 @@ async () => {
examples

```js
import { wrapMethod } from "asyncresult-js";
import { wrapMethod } from 'asyncresult-js';

const myMethod = function() {
return "foo";
Expand Down Expand Up @@ -254,7 +254,7 @@ Something.fooAsync = wrapMethod(Something.foo, { context: Something })
example

```js
import { config, wrapMethod } from "asyncresult-js";
import { config, wrapMethod } from 'asyncresult-js';
config.AsyncResult = MyOwnAsyncResult;

const test = () => true;
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as config } from './config';
export { default as AsyncResult } from './asyncResult';
export { default as config } from './config';
export { toAsyncResult, wrapMethod, addAsync } from './utils';
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as config } from './config';
export { default as AsyncResult } from './asyncResult';
export { default as config } from './config';
export { toAsyncResult, wrapMethod, addAsync } from './utils';

0 comments on commit 887f9f5

Please sign in to comment.