1.0.0 • Published 5 years ago

@m5d215/ts-omit v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

ts-omit

version license dependents

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'>
1.0.0

5 years ago

0.1.0

5 years ago