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
/// <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: Tue, 07 Nov 2023 0337 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jonas Birmé, and Oscar Nord.