Parameters
import type { Parameters } from "tsafe/Parameters";
declare const myFunction: (a: string) => void | null;
type args = Parameters<typeof myFunction>;
// ^ args is [a: string]Last updated
Was this helpful?
import type { Parameters } from "tsafe/Parameters";
declare const myFunction: (a: string) => void | null;
type args = Parameters<typeof myFunction>;
// ^ args is [a: string]Last updated
Was this helpful?
Was this helpful?