Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/tsafe/src/lab/defineAccessors.ts>defineAccessors

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
variable defineAccessors
import { defineAccessors } from "https://deno.land/x/windmill@v1.393.3/node_modules/tsafe/src/lab/defineAccessors.ts";

type

<T extends Record<string, unknown>, K extends keyof T>(
obj: T,
propertyName: K,
propertyDescriptor: { get?: () => T[K]; set?: (value: T[K]) => void; },
) => void