export type DotNetObjectReference = { invokeMethodAsync: (methodName: string, ...args: any[]) => Promise; }; export type BlazorInvokableFunction void> = string | T; export interface BlazorInvokable { blazorRef?: DotNetObjectReference; setBlazorRef: (newBlazorRef: DotNetObjectReference) => void; }