@@ -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
2929Adds a dependency to the registry.
3030It 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
7575Name | Type | Description
7676-----|------|------------
77- objectOrFunction | ` anything ` | Always returns this argument
77+ objectOrFunction | ` mixed ` | Always returns this argument
7878
7979A factory function that always returns the first argument when ` di.get ` is called.
8080
81- ### ` SimpleDi.withNew(… ) `
81+ ### ` SimpleDi.withNew(Constructor ) `
8282
8383Name | Type | Description
8484-----|------|------------
0 commit comments