message: more work for flight
diff: @@ -91,7 +91,69 @@ class b {
  $: string;
  }
  +function findNoam<entityType>(): {
  + count(): Promise<number>;
  + isFirst: boolean;
  + isLast: boolean;
  + next(rows: number): Promise<entityType[]>;
  + previous(rows: number): Promise<entityType[]>;
  +
  + [Symbol.asyncIterator](): {
  + next: () => Promise<IteratorResult<entityType, entityType>>;
  + };
  +} {
  + return undefined;
  +}
  +
  +async function myCode() {
  + for (const task of await findNoam<a>().next(100)) {
  +
  + }
  + for await (const task of findNoam<a>()) {
  +
  + }
  + let manyOfa = findNoam<a>();
  +}
  +function find<entityType>(options?: {
  + page: number,
  + limit: number
  +}): Promise<findResponse<entityType>> {
  + return undefined;
  +
  +}
  +
  +//find many
  +interface findResponse<entityType> {
  + items: entityType[]
  + count(): Promise<number>, //tbd
  + hasNextPage: boolean,
  + hasPreviousPage: boolean,
  + nextPage(): Promise<findResponse<entityType>>,
  + previousPage(): Promise<findResponse<entityType[]>>,
  + forEach(what: (item: entityType) => Promise<any>): Promise<number>;//why number
  + map<T>(how: (item: entityType,index:number) => Promise<T>): Promise<T[]>;
  + [Symbol.asyncIterator](): {
  + next: () => Promise<IteratorResult<entityType, entityType>>;
  + };
  +}
  +
  +[].map((a,b,c)=>{})
  +
  +// async function yoniFinction() {
  +// const { items, count, isLast } = (await find<a>());
  +
  +// }
  +// function gateWayFind(): {
  +// items: entityType[],
  +// count?: number,
  +// nextToken,
  +// backToken
  +// } {
  +// }
  +/*
  +our api get - or our api data provider, will return an array when stupid - or an object when not - and we'll wrap it.
  +*/
  \ No newline at end of file
  