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>>);
        process: ((id: string, data?: {
            email: string;
            password: string;
        }) => Promise<void>);
    } = ...

    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

            Id

          • data: T

            Data

          Returns Promise<undefined | ILink<T>>

          Link

    • process: ((id: string, data?: {
          email: string;
          password: string;
      }) => Promise<void>)
        • (id, data?): Promise<void>
        • Process

          Parameters

          • id: string

            Id

          • Optionaldata: {
                email: string;
                password: string;
            }

            Data

            • email: string
            • password: string

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin