Skip to content

Commit e97f315

Browse files
author
Julian Hollmann
committed
Update README.md
1 parent 10c2fe3 commit e97f315

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SimpleDi is compatible with ES3 compliant browsers
1515

1616
## Api
1717

18-
### `di.register()`
18+
### `di.register(dependencyName, factoryFunction[, dependencies[, overwrite]])`
1919

2020
#### Parameters:
2121

@@ -29,7 +29,7 @@ overwrite | `boolean` | *optional* This allows to explicitly overwrite dependenc
2929
Adds a dependency to the registry.
3030
It throws an exception when a dependency with the same name already exists and overwrite true is not passed.
3131

32-
### `di.registerBulk()`
32+
### `di.registerBulk(dependencies)`
3333

3434
#### Parameters:
3535

@@ -46,7 +46,7 @@ di.registerBulk([
4646
]);
4747
```
4848

49-
### `di.get(name, …restArgs)`
49+
### `di.get(name[, arg1[, arg2[, ...]]])`
5050

5151
#### Parameters:
5252

@@ -70,15 +70,15 @@ Returns an object with numbers that state how often each dependency got resolved
7070

7171
## Built-in factory functions
7272

73-
### `SimpleDi.always()`
73+
### `SimpleDi.always(objectOrFunction)`
7474

7575
Name | Type | Description
7676
-----|------|------------
77-
objectOrFunction | `anything` | Always returns this argument
77+
objectOrFunction | `mixed` | Always returns this argument
7878

7979
A factory function that always returns the first argument when `di.get` is called.
8080

81-
### `SimpleDi.withNew()`
81+
### `SimpleDi.withNew(Constructor)`
8282

8383
Name | Type | Description
8484
-----|------|------------

0 commit comments

Comments
 (0)