textiot
Version:
A framework for building web and native (IoT) Dapps on the IPFS network
19 lines (18 loc) • 698 B
TypeScript
import { Link, Directory, Node, FileIndex } from '../models';
export declare type MillOpts = Record<string, string>;
export declare type MillFunction = (mill: string, opts: MillOpts, form: any, headers: {
[k: string]: string;
}) => Promise<FileIndex>;
export default class SchemaMiller {
static sortLinksByDependency(links: {
[k: string]: Link;
}): {
name: string;
link: Link;
}[];
static normalizeOptions(info: Node | Link): Record<string, string>;
static resolveDependency(method: MillOpts, payloadsByName: Directory): {
[x: string]: string;
};
static mill(payload: any, node: Node, remoteMill: MillFunction): Promise<Directory>;
}