🚧 shorthand
This commit is contained in:
parent
39f177dc26
commit
4f39c66381
3 changed files with 32 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue