Skip to content

parsePropertyId

Official

Split a Bases property ID into constituent parts.

Import:

import { parsePropertyId } from 'obsidian';

Signature:

function parsePropertyId(propertyId: `note.${string}` | `formula.${string}` | `file.${string}`): BasesProperty

Parameters:

ParameterTypeDescription
propertyIdnote.$\{[string](https://www.typescriptlang.org/docs/handbook/basic-types.html#string)\} | formula.$\{[string](https://www.typescriptlang.org/docs/handbook/basic-types.html#string)\} | file.$\{[string](https://www.typescriptlang.org/docs/handbook/basic-types.html#string)\}

Returns: BasesProperty