Variable defaultConst

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

    Type declaration

    • add: ((link: {
          email: string;
          type: string;
          userid?: string;
      }) => Promise<INewLink>)
        • (link): Promise<INewLink>
        • Add

          Parameters

          • link: {
                email: string;
                type: string;
                userid?: string;
            }

            Link

            • email: string
            • type: string
            • Optionaluserid?: string

          Returns Promise<INewLink>

          New link

    • del: ((link: {
          id: string;
      }) => Promise<void>)
        • (link): Promise<void>
        • Delete

          Parameters

          • link: {
                id: string;
            }

            Link

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | ILink<T>>)
        • <T>(id, data): Promise<undefined | ILink<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Link id

          • data: T

            Data

          Returns Promise<undefined | ILink<T>>

          Link

    Generated using TypeDoc and TypeDoc Airthium Plugin