export type StructAssociated = { kind: "structAssociated"; handler: (...args: TArgs) => TResult; }; export type StructMethod = { kind: "structMethod"; handler: (self: TSelf, ...args: TArgs) => TResult; }; export type StructMember = StructAssociated | StructMethod | ((...args: any[]) => unknown) | unknown;