Skip to content

ContextOf<T>

Extracts the context type from a ContextId.

Import:

import type { ContextOf } from 'obsidian-integration-testing';

Signature:

export type ContextOf<T>

Signature:

type ContextOf<T> = T extends ContextId<infer Context> ? Context : never

Type: T extends ContextId<infer Context> ? Context : never


Links to this page: