Skip to main content

@zero-dependency/utils

Index

Type Aliases

Entries

Entries<T>: [Keys<T>, Values<T>][]

Type parameters

  • T

Keys

Keys<T>: Extract<keyof T, string>

Type parameters

  • T

LogType

LogType: info | debug | warn | error

Plain

Plain<T>: T extends (...a: any[]) => any ? T : T extends new (...a: any[]) => any ? T : T extends object ? { [ Key in keyof T ]: T[Key] } : T

Type parameters

  • T

Values

Values<T>: T[keyof T]

Type parameters

  • T