File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1+ import type { ExtendedIterable } from '@harperfast/extended-iterable' ;
12import type { User } from '../security/user.ts' ;
23import type { RecordObject } from './RecordEncoder.js' ;
34import type {
@@ -436,7 +437,7 @@ export class Resource<Record extends object = any> implements ResourceInterface<
436437 | AsyncIterable < Record & Partial < RecordObject > >
437438 | Promise < AsyncIterable < Record & Partial < RecordObject > > > ;
438439
439- search ?( target : RequestTargetOrId ) : AsyncIterable < Record & Partial < RecordObject > > ;
440+ search ?( target : RequestTargetOrId ) : ExtendedIterable < Record & Partial < RecordObject > > ;
440441
441442 create ?(
442443 newRecord : Partial < Record & RecordObject > ,
Original file line number Diff line number Diff line change @@ -907,10 +907,10 @@ export function makeTable(options): TableStaticInterface {
907907 * This retrieves the data of this resource.
908908 * @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
909909 */
910- get ( target : RequestTargetOrId ) : Record | AsyncIterable < Record > | Promise < Record | AsyncIterable < Record > > ;
910+ get ( target : RequestTargetOrId ) : ExtendedIterable < Record > | Promise < Record > ;
911911 get (
912912 target ?: RequestTargetOrId
913- ) : TableResource < Record > | undefined | Record | AsyncIterable < Record > | Promise < Record | AsyncIterable < Record > > {
913+ ) : TableResource < Record > | undefined | Record | ExtendedIterable < Record > | Promise < Record | ExtendedIterable < Record > > {
914914 const constructor : Resource = this . constructor ;
915915 if ( typeof target === 'string' && constructor . loadAsInstance !== false ) return this . getProperty ( target ) ;
916916 if ( isSearchTarget ( target ) ) {
You can’t perform that action at this time.
0 commit comments