UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

36 lines (35 loc) 924 B
/** * @packageDocumentation * * A transformer that skips private properties. */ import { Transformer } from './Transformer.cjs'; /** * A transformer that skips private properties. */ export declare class SkipPrivatePropertyTransformer extends Transformer { /** * The id of the transformer. * * @returns `skip-private-property`. */ get id(): string; /** * Determines if the transformer can transform the given value. * * @param _value - The value to check. * @param key - The key of the value to check. * @returns A boolean indicating if the transformer can transform the value. */ canTransform(_value: unknown, key: string): boolean; /** * Transforms the given value. * * @returns The transformed value. */ transformValue(): unknown; /** * Restores the given value. */ protected restoreValue(): unknown; }