• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Task
    • Type
    • Conventions
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Relay
    • Migrations
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference › @evolu/common › Resource › BorrowedResource

type BorrowedResource<T> = Omit<
  T,
  typeof Symbol.dispose | typeof Symbol.asyncDispose
>;

Defined in: packages/common/src/Resource.ts:74

Borrowed Resource.

A borrowed resource is a Resource without disposal methods.

Another abstraction owns the resource and controls its lifecycle. Exposing disposal would break that ownership and allow callers to dispose a resource they do not own.

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server