Robin Chappatte 127ae6abd9 initial commit
2024-06-01 16:32:44 +02:00
2024-06-01 16:32:44 +02:00
2024-06-01 16:32:44 +02:00
2024-06-01 16:32:44 +02:00
2024-06-01 16:32:44 +02:00

Function injection

Provide a way to inject the first(s: up to nine) arguments in a function.

Example:

function myFunc(p1: string, p2: string, p3: string) {
  console.log(p1, p2, p3)
}

const injected = inject(myFunc, "A", "B"); //< `injected` is a function that only take one argument
injected("C"); //< same result as calling `myFunc("A", "B", "C")
Description
No description provided
Readme 22 KiB
2024-06-17 18:23:00 +02:00
Languages
TypeScript 100%