Skip to content

Commit

Permalink
fix: add aliases for Result methods fixes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Dec 17, 2023
1 parent e73c599 commit d6f755c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/core/FormResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,21 @@ export default class FormResult {
}
return result;
}
/* == Aliases ==*/
/**
* just an alias for `asFrontmatterString`
*/
asFrontmatter = this.asFrontmatterString;
/**
* just an alias for `asFrontmatterString`
*/
asYaml = this.asFrontmatterString;
/**
* just an alias for `asDataviewProperties`
*/
asDataview = this.asDataviewProperties;
/**
* just an alias for `asDataviewProperties`
*/
asDv = this.asDataviewProperties;
}

0 comments on commit d6f755c

Please sign in to comment.