sample-pilet-service
Version:
Piral: Sample pilet feed service.
87 lines (86 loc) • 1.81 kB
TypeScript
export declare function latestPilets(): Promise<({
name: string;
description: string;
author: {
name: string;
email: string;
};
license: {
type: string;
text: string;
};
version: string;
link: string;
content: string;
hash: string;
noCache: string | boolean;
custom: any;
spec: string;
requireRef?: undefined;
integrity?: undefined;
dependencies?: undefined;
} | {
name: string;
description: string;
author: {
name: string;
email: string;
};
license: {
type: string;
text: string;
};
version: string;
link: string;
requireRef: string;
integrity: string;
custom: any;
spec: string;
content?: undefined;
hash?: undefined;
noCache?: undefined;
dependencies?: undefined;
} | {
name: string;
description: string;
author: {
name: string;
email: string;
};
license: {
type: string;
text: string;
};
version: string;
link: string;
requireRef: string;
integrity: string;
custom: any;
dependencies: Record<string, string>;
spec: string;
content?: undefined;
hash?: undefined;
noCache?: undefined;
} | {
name: string;
description: string;
author: {
name: string;
email: string;
};
license: {
type: string;
text: string;
};
version: string;
link: string;
integrity: string;
custom: any;
spec: string;
content?: undefined;
hash?: undefined;
noCache?: undefined;
requireRef?: undefined;
dependencies?: undefined;
})[]>;
export declare function storePilet(file: NodeJS.ReadableStream, rootUrl: string): Promise<import("../types").PiletDb>;