2.0.4 • Published 6 months ago

@types/eyevinn-iaf v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/eyevinn-iaf

Summary

This package contains type definitions for eyevinn-iaf (https://github.com/Eyevinn/ingest-application-framework).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eyevinn-iaf.

index.d.ts

// Type definitions for non-npm package eyevinn-iaf 2.0
// Project: https://github.com/Eyevinn/ingest-application-framework
// Definitions by: Jonas Birmé <https://github.com/birme>
//                 Oscar Nord <https://github.com/oscnord>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node"/>

import { Readable } from 'stream';

export interface Logger {
    verbose: (message: string) => void;
    info: (message: string) => void;
    warn: (message: string) => void;
    error: (message: string) => void;
}
export interface IafUploadModule {
    logger: Logger;
    playlistName: string;
    onFileAdd(filePath: string, readStream: Readable, contentType?: string): any;
    progressDelegate: (result: any) => any;
    fileUploadedDelegate: (result: any, error?: any) => any;
}
export interface IafFileWatchModule {
    fileInput: string;
    logger: Logger;
    onAdd(callback: (filePath: string, readStream: Readable, contentType?: string) => any): any;
}

Additional Details

  • Last updated: Fri, 28 Jan 2022 11:31:25 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Jonas Birmé, and Oscar Nord.