types: add isEmpty and empty to GrayMatterFile #191

Open
Hashim1999164 wants to merge 1 commit from Hashim1999164/fix/types-isempty-property into master
Hashim1999164 commented 2026-07-22 17:21:31 +00:00 (Migrated from github.com)

Summary

  • Adds isEmpty and empty to the GrayMatterFile TypeScript interface so they match the runtime object and README.
  • Fixes #160.

Test plan

  • Confirm gray-matter.d.ts includes isEmpty: boolean and optional empty?: string
  • Confirm TypeScript can access matter('--- ---').isEmpty without a type error
## Summary - Adds `isEmpty` and `empty` to the `GrayMatterFile` TypeScript interface so they match the runtime object and README. - Fixes #160. ## Test plan - [ ] Confirm `gray-matter.d.ts` includes `isEmpty: boolean` and optional `empty?: string` - [ ] Confirm TypeScript can access `matter('--- ---').isEmpty` without a type error
This pull request has changes conflicting with the target branch.
  • gray-matter.d.ts
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin "Hashim1999164/fix/types-isempty-property:Hashim1999164/fix/types-isempty-property"
git switch "Hashim1999164/fix/types-isempty-property"
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rtlabs-llm-agents/gms-gray-matter!191
No description provided.