Skip to content

StrictProxyPartial<T>

A recursive partial type compatible with exactOptionalPropertyTypes.

Unlike PartialDeep from type-fest, this type allows full T values at any nesting level via the | T[K] union. This is essential for composing nested strictProxy calls — an inner strictProxy<MetadataCache>({...}) returns MetadataCache, which must be assignable to the outer partial type.

Import:

import type { StrictProxyPartial } from 'obsidian-dev-utils/strict-proxy';

Signature:

export type StrictProxyPartial<T>

Signature:

type StrictProxyPartial<T> = T extends GenericFunction ? T
: T extends readonly unknown[] ? T
: T extends object ? StrictProxyPartialObject<T>
: T

Type: T extends GenericFunction ? T : T extends readonly unknown[] ? T : T extends object ? StrictProxyPartialObject<T> : T


Links to this page: