We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8482131 commit 8406591Copy full SHA for 8406591
src/lib/types.ts
@@ -1,10 +1,15 @@
1
+import { Lens } from 'ramda';
2
+
3
export interface RouteOptions {
4
// lenses for properties to update
- lenses: any[];
5
+ lenses: Lens<object, string>[];
6
// path from which source to extract
- pathToSource: any;
- // source object can also be array
7
- source: object | any[];
+ pathToSource?: Lens<object, Response>;
8
+}
9
10
+export interface PluginOptions {
11
// function to generate signed urls
12
getSignedUrl(key: string): Promise<string>;
13
}
14
15
+export type Response = object | object[];
0 commit comments