Skip to content

@mastondzn/dank-twitch-irc / OverrideFunction

Type alias: OverrideFunction<S, T, K>

OverrideFunction<S, T, K>: (this, oldFunction, ...args) => ReturnType<T[K]>

Type parameters

S

T extends Record<string, any>

K extends keyof T

Parameters

this: S

oldFunction: T[K]

• ...args: Parameters<T[K]>

Returns

ReturnType<T[K]>

Source

src/utils/apply-function-replacements.ts:4