Skip to content

Commit 065a6b3

Browse files
committed
docs(README): .plugin([plugin1, plugin2]) is now .plugin(plugin1, plugin2)
1 parent 60ef88b commit 065a6b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ import { Base } from "javascript-plugin-architecture-with-typescript-definitions
1515

1616
function myFooPlugin(instance: Base) {
1717
return {
18-
foo: () => "foo"
18+
foo: () => "foo",
1919
};
2020
}
2121

2222
function myBarPlugin(instance: Base) {
2323
return {
24-
bar: () => "bar"
24+
bar: () => "bar",
2525
};
2626
}
2727

2828
const FooTest = Base.plugin(myFooPlugin);
2929
const fooTest = new FooTest();
3030
fooTest.foo(); // has full TypeScript intellisense
3131

32-
const FooBarTest = Base.plugin([myFooPlugin, myBarPlugin]);
32+
const FooBarTest = Base.plugin(myFooPlugin, myBarPlugin);
3333
const fooBarTest = new FooBarTest();
3434
fooBarTest.foo(); // has full TypeScript intellisense
3535
fooBarTest.bar(); // has full TypeScript intellisense

0 commit comments

Comments
 (0)