Skip to content
On this page

Module: util/common

Enumerations

Type Aliases

ArrayElements

Ƭ ArrayElements<T>: T extends ReadonlyArray<infer S> ? S : never

Type parameters

NameType
Textends ReadonlyArray<unknown>

Defined in

profectus/src/util/common.ts:3


WithRequired

Ƭ WithRequired<T, K>: T & { [P in K]-?: T[P] }

Type parameters

NameType
TT
Kextends keyof T

Defined in

profectus/src/util/common.ts:1

Functions

camelToTitle

camelToTitle(camel): string

Parameters

NameType
camelstring

Returns

string


isFunction

isFunction<T, S, R>(functionOrValue): functionOrValue is (...args: S) => T

Type parameters

NameType
TT
Sextends readonly unknown[]
RR

Parameters

NameType
functionOrValueR | (...args: S) => T

Returns

functionOrValue is (...args: S) => T