• 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

    • How It Works
    • Indexes
    • Migrations
    • Patterns
    • Time travel
    • Examples
  • Other

    • API Reference
    • Comparison
    • Showcase
    • FAQ
    • 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:3654

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