Skip to content

Commit 8406591

Browse files
committed
updated types
1 parent 8482131 commit 8406591

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/lib/types.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import { Lens } from 'ramda';
2+
13
export interface RouteOptions {
24
// lenses for properties to update
3-
lenses: any[];
5+
lenses: Lens<object, string>[];
46
// path from which source to extract
5-
pathToSource: any;
6-
// source object can also be array
7-
source: object | any[];
7+
pathToSource?: Lens<object, Response>;
8+
}
9+
10+
export interface PluginOptions {
811
// function to generate signed urls
912
getSignedUrl(key: string): Promise<string>;
1013
}
14+
15+
export type Response = object | object[];

0 commit comments

Comments
 (0)