@signalk/resources-provider
Version:
Resources provider plugin for Signal K server.
20 lines (19 loc) • 464 B
TypeScript
export interface IResourceStore {
savePath: string;
resources: any;
init: (basePath: string) => Promise<{
error: boolean;
message: string;
}>;
getResources: (type: string, item: any, params: {
[key: string]: any;
}) => Promise<{
[key: string]: any;
}>;
setResource: (r: StoreRequestParams) => Promise<void>;
}
export interface StoreRequestParams {
id: string;
type: string;
value: any;
}