1 | import { Entity } from '../entity';
|
2 | import { EdmTypeShared } from '../edm-types';
|
3 | import { Field, FieldOptions } from './field';
|
4 | import { ConstructorOrField } from './constructor-or-field';
|
5 | import { ComplexTypeNamespace } from './complex-type-namespace';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class CollectionField<EntityT extends Entity, CollectionFieldT extends EdmTypeShared<'any'> | Record<string, any> = any, NullableT extends boolean = false, SelectableT extends boolean = false> extends Field<EntityT, NullableT, SelectableT> {
|
14 | readonly _fieldOf: ConstructorOrField<EntityT>;
|
15 | readonly _fieldType: CollectionFieldType<CollectionFieldT>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | constructor(fieldName: string, _fieldOf: ConstructorOrField<EntityT>, _fieldType: CollectionFieldType<CollectionFieldT>, fieldOptions?: FieldOptions<NullableT, SelectableT>);
|
24 | /**
|
25 | * Gets the path to the complex type property represented by this.
|
26 | * @returns The path to the complex type property.
|
27 | */
|
28 | fieldPath(): string;
|
29 | }
|
30 | /**
|
31 | * Convenience type to reflect the type of the instances of a collection field.
|
32 | * The actual type of the elements for complex type collections is [[ComplexTypeNamespace]].
|
33 | * @typeparam CollectionFieldT - Type of of elements of the collection. This can either be an EDM type or complex type.
|
34 | */
|
35 | export declare type CollectionFieldType<CollectionFieldT extends EdmTypeShared<'any'> | Record<string, any>> = CollectionFieldT | ComplexTypeNamespace<CollectionFieldT>;
|
36 | //# sourceMappingURL=collection-field.d.ts.map |
\ | No newline at end of file |