Commit 72d3ae4
feat(pluginrpository.ts): refactor registerplugin to take validator
* feat(pluginrpository.ts): refactor registerplugin to take validator
To make writing plugins easier, the validator is now a parameter to the registerPlugin function.
Also the resiterPlugin functin now checks its types.
* fix(pluginrepsitory .ts): user the correct validator
* fix(pluginrepository): check type of valdidator is funciton1 parent 73cfa2b commit 72d3ae4
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
0 commit comments