Endo
    Preparing search index...

    Type Alias TypeFromInterfaceGuard<G>

    TypeFromInterfaceGuard: G extends InterfaceGuard<infer MG>
        ? { [K in keyof MG]: TypeFromMethodGuard<MG[K]> }
        : Record<string, (...args: any[]) => any>

    Infer a methods record from an InterfaceGuard.

    Type Parameters

    • G
    const FooI = M.interface('Foo', {
    bar: M.call(M.string()).returns(M.nat()),
    });
    type FooMethods = TypeFromInterfaceGuard<typeof FooI>;
    // { bar: (arg0: string) => bigint }