obsidian-typings 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9417,7 +9417,7 @@ declare module "obsidian" {
9417
9417
  *
9418
9418
  * @official
9419
9419
  */
9420
- function parseFrontMatterAliases(frontmatter: null | unknown): null | string[];
9420
+ function parseFrontMatterAliases(frontmatter: unknown): null | string[];
9421
9421
  /**
9422
9422
  * Parses a frontmatter entry from the frontmatter object.
9423
9423
  *
@@ -9433,13 +9433,12 @@ declare module "obsidian" {
9433
9433
  *
9434
9434
  * @official
9435
9435
  */
9436
- function parseFrontMatterEntry(frontmatter: null | unknown, key: RegExp | string): null | unknown;
9436
+ function parseFrontMatterEntry(frontmatter: unknown, key: RegExp | string): unknown;
9437
9437
  /**
9438
9438
  * Parses a frontmatter string array from the frontmatter object.
9439
9439
  *
9440
9440
  * @param frontmatter - The frontmatter object.
9441
9441
  * @param key - The key to parse.
9442
- * @param nospaces - Whether to remove spaces from the array.
9443
9442
  * @returns The parsed entry or `null` if the key is not found.
9444
9443
  *
9445
9444
  * @example
@@ -9448,14 +9447,14 @@ declare module "obsidian" {
9448
9447
  * console.log(parseFrontMatterStringArray({ foo: 'bar,baz' }, 'foo')); // ['bar', 'baz']
9449
9448
  * console.log(parseFrontMatterStringArray({ foo: 'bar\nbaz' }, 'foo')); // ['bar', 'baz']
9450
9449
  * console.log(parseFrontMatterStringArray({ foo: 'bar baz' }, 'foo')); // ['bar baz']
9451
- * console.log(parseFrontMatterStringArray({ foo: 'bar baz' }, 'foo', false)); // ['bar baz']
9452
- * console.log(parseFrontMatterStringArray({ foo: 'bar baz' }, 'foo', true)); // ['bar', 'baz']
9450
+ * console.log(parseFrontMatterStringArray({ foo: 'bar baz' }, 'foo')); // ['bar baz']
9451
+ * console.log(parseFrontMatterStringArray({ foo: 'bar baz' }, 'foo')); // ['bar', 'baz']
9453
9452
  * console.log(parseFrontMatterStringArray({ foo: ['bar', 'baz'] }, /fo./)); // ['bar', 'baz']
9454
9453
  * ```
9455
9454
  *
9456
9455
  * @official
9457
9456
  */
9458
- function parseFrontMatterStringArray(frontmatter: null | unknown, key: RegExp | string, nospaces?: boolean): null | string[];
9457
+ function parseFrontMatterStringArray(frontmatter: unknown, key: RegExp | string): null | string[];
9459
9458
  /**
9460
9459
  * Parses the frontmatter tags from the frontmatter object.
9461
9460
  *
@@ -9471,7 +9470,7 @@ declare module "obsidian" {
9471
9470
  *
9472
9471
  * @official
9473
9472
  */
9474
- function parseFrontMatterTags(frontmatter: null | unknown): null | string[];
9473
+ function parseFrontMatterTags(frontmatter: unknown): null | string[];
9475
9474
  /**
9476
9475
  * Parses the linktext of a wikilink into its component parts.
9477
9476
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",