Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Object/At"

Index

Type aliases

Type aliases

At

At<O, K>: At<O, K>

Get in O the type of a field of key K

Type parameters

  • O: object

    to extract from

  • K: Index

    keyof to extract at

returns

any

example

import {O} from 'ts-toolbelt'

type User = {
    info: {
        name: string
        age: number
        payment: {}
    }
    id: number
}

type test0 = O.At<User, 'id'> // number

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.