Skip to main content
Module

x/denops_std/variable/types.ts>Getter

📚 Standard module for denops.vim
Latest
interface Getter
import { type Getter } from "https://deno.land/x/denops_std@v6.5.0/variable/types.ts";

Represents a getter method for retrieving property value.

Methods

get<T = unknown>(
denops: Denops,
prop: string,
defaultValue?: T,
): Promise<T>

Gets the value of the specified property, or default value if it doesn't exist.

get<T = unknown>(denops: Denops, prop: string): Promise<T | null>

Gets the value of the specified property, or null if it doesn't exist.