Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "helpers/omit"

Index

Type aliases

Functions

Type aliases

Omit

Omit<T, K>: Pick<T, Exclude<keyof T, K>>

Type parameters

  • T

  • K

Functions

omit

  • omit<T, K>(inputProps: T, omitProps: K[]): Omit<T, K>
  • omit<T>(inputProps: T, omitProps: string[]): Partial<T>
  • Get React-HTML props from props object.

    Type parameters

    • T: object

    • K: keyof T

    Parameters

    • inputProps: T

      Props object.

    • omitProps: K[]

      Props to ignore.

    Returns Omit<T, K>

    Object with omited props.

  • Get React-HTML props from props object.

    Type parameters

    • T: object

    Parameters

    • inputProps: T
    • omitProps: string[]

    Returns Partial<T>

    Object with omited props.

Generated using TypeDoc