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

    • Quickstart
  • Library

    • Result
    • Type
    • Dependency injection
    • Conventions
  • Local-first

    • Examples
    • Protocol
    • Relay
    • Owner
    • Indexes
    • Migrations
    • Patterns
    • Time travel
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference / @evolu/common / Type / omit

Function: omit()

function omit<T, Keys>(objectType, ...keys): ObjectType<Omit<T["props"], Keys>>;

Defined in: packages/common/src/Type.ts:3721

Create a new object Type by omitting some keys.

Type Parameters

Type Parameter
T extends ObjectType<any>
Keys extends string | number | symbol

Parameters

ParameterType
objectTypeT
...keysreadonly Keys[]

Returns

ObjectType<Omit<T["props"], Keys>>

Was this page helpful?

© Copyright 2025. All rights reserved.

Follow us on GitHubFollow us on XJoin our Discord server