Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
/ ts-omit Public archive

Delete properties from type at compilation time.

License

Notifications You must be signed in to change notification settings

m5d215/ts-omit

Repository files navigation

ts-omit

version license dependents

CircleCI

Delete properties from type at compilation time.

yarn add --dev @m5d215/ts-omit
import Omit from '@m5d215/ts-omit'

interface Person {
  name: string
  age: number
}

// Anonymous is { age: number }
type Anonymous = Omit<Person, 'name'>