UNPKG

@pazznetwork/ngx-chat

Version:

[![Build status](https://api.travis-ci.com/pazznetwork/ngx-chat.svg?branch=master)](https://travis-ci.com/pazznetwork/ngx-chat) [![Coverage](https://coveralls.io/repos/github/pazznetwork/ngx-chat/badge.svg?branch=master)](https://coveralls.io/github/pazzn

13 lines (12 loc) 403 B
import { InjectionToken } from '@angular/core'; /** * Optional injectable token to handle file uploads in the chat. */ export declare const FILE_UPLOAD_HANDLER_TOKEN: InjectionToken<FileUploadHandler>; export interface FileUploadHandler { /** * @return {string} Returns the public URL of the uploaded file. */ upload(file: File): Promise<string>; isUploadSupported(): boolean; }