1
0
Fork 0

🚧 shorthand

This commit is contained in:
joostdecock 2018-07-19 14:02:04 +00:00
parent 39f177dc26
commit 4f39c66381
3 changed files with 32 additions and 31 deletions

View file

@ -19,6 +19,7 @@ export class Pattern {
hooks: Hooks;
snippet: Snippet
path: Path
context: any
constructor(config: PatternConfig) {
if(!config) {
@ -44,6 +45,13 @@ export class Pattern {
else this.options[conf.id] = conf.val;
}
}
this.context = {
parts: this.parts,
options: this.options,
values: this.values,
config: this.config,
settings: this.settings
}
return this;
}