default: {
    add: (
        link: { email: string; type: string; userid?: string },
    ) => Promise<INewLink>;
    del: (link: { id: string }) => Promise<void>;
    get: <T extends TLinkGet>(
        id: string,
        data: T,
    ) => Promise<undefined | ILink<T>>;
    process: (
        id: string,
        data?: { email: string; password: string },
    ) => Promise<void>;
} = ...

Type declaration

  • add: (link: { email: string; type: string; userid?: string }) => Promise<INewLink>
  • del: (link: { id: string }) => Promise<void>
  • get: <T extends TLinkGet>(id: string, data: T) => Promise<undefined | ILink<T>>
  • process: (id: string, data?: { email: string; password: string }) => Promise<void>