Skip to content

Commit b75a480

Browse files
committed
docs: Update library types for website editor
1 parent 2c96ca4 commit b75a480

File tree

11 files changed

+340
-364
lines changed

11 files changed

+340
-364
lines changed

website/src/components/Playground/editor-types/@data-client/core.d.ts

Lines changed: 217 additions & 133 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
export { }
2+
export { }

website/src/components/Playground/editor-types/@data-client/endpoint.d.ts

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,74 +1009,46 @@ declare class Collection<
10091009
Parent = any,
10101010
> extends CollectionRoot<S, Args, Parent> {}
10111011

1012+
type schema_d_All<S extends EntityMap | EntityInterface = EntityMap | EntityInterface> = All<S>;
1013+
declare const schema_d_All: typeof All;
1014+
type schema_d_Collection<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = Collection<S, Args, Parent>;
1015+
declare const schema_d_Collection: typeof Collection;
1016+
type schema_d_CollectionArrayAdder<S extends PolymorphicInterface> = CollectionArrayAdder<S>;
1017+
type schema_d_CollectionConstructor = CollectionConstructor;
1018+
type schema_d_CollectionFromSchema<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = CollectionFromSchema<S, Args, Parent>;
1019+
type schema_d_CollectionInterface<S extends PolymorphicInterface = any, Args extends any[] = any[], Parent = any> = CollectionInterface<S, Args, Parent>;
1020+
declare const schema_d_CollectionRoot: typeof CollectionRoot;
1021+
type schema_d_DefaultArgs = DefaultArgs;
1022+
type schema_d_EntityInterface<T = any> = EntityInterface<T>;
10121023
type schema_d_EntityMap<T = any> = EntityMap<T>;
1024+
declare const schema_d_EntityMixin: typeof EntityMixin;
10131025
type schema_d_Invalidate<E extends EntityInterface & {
10141026
process: any;
10151027
}> = Invalidate<E>;
10161028
declare const schema_d_Invalidate: typeof Invalidate;
1029+
type schema_d_MergeFunction = MergeFunction;
10171030
type schema_d_Query<S extends Queryable | {
10181031
[k: string]: Queryable;
10191032
}, P extends (entries: Denormalize<S>, ...args: any) => any> = Query<S, P>;
10201033
declare const schema_d_Query: typeof Query;
1021-
declare const schema_d_EntityMixin: typeof EntityMixin;
1034+
type schema_d_SchemaAttributeFunction<S extends Schema> = SchemaAttributeFunction<S>;
10221035
type schema_d_SchemaClass<T = any, Args extends readonly any[] = any> = SchemaClass<T, Args>;
1023-
type schema_d_All<S extends EntityMap | EntityInterface = EntityMap | EntityInterface> = All<S>;
1024-
declare const schema_d_All: typeof All;
1036+
type schema_d_SchemaFunction<K = string, Args = any> = SchemaFunction<K, Args>;
1037+
type schema_d_StrategyFunction<T> = StrategyFunction<T>;
1038+
type schema_d_Union<Choices extends EntityMap, SchemaAttribute extends
1039+
| keyof AbstractInstanceType<Choices[keyof Choices]>
1040+
| SchemaFunction<keyof Choices>> = Union<Choices, SchemaAttribute>;
1041+
declare const schema_d_Union: typeof Union;
10251042
type schema_d_UnionConstructor = UnionConstructor;
10261043
type schema_d_UnionInstance<Choices extends EntityMap = any, Args extends EntityFields<
10271044
AbstractInstanceType<Choices[keyof Choices]>
10281045
> = EntityFields<AbstractInstanceType<Choices[keyof Choices]>>> = UnionInstance<Choices, Args>;
1046+
type schema_d_UnionResult<Choices extends EntityMap> = UnionResult<Choices>;
10291047
declare const schema_d_UnionRoot: typeof UnionRoot;
1030-
type schema_d_Union<Choices extends EntityMap, SchemaAttribute extends
1031-
| keyof AbstractInstanceType<Choices[keyof Choices]>
1032-
| SchemaFunction<keyof Choices>> = Union<Choices, SchemaAttribute>;
1033-
declare const schema_d_Union: typeof Union;
10341048
type schema_d_Values<Choices extends Schema = any> = Values<Choices>;
10351049
declare const schema_d_Values: typeof Values;
1036-
declare const schema_d_CollectionRoot: typeof CollectionRoot;
1037-
type schema_d_Collection<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = Collection<S, Args, Parent>;
1038-
declare const schema_d_Collection: typeof Collection;
1039-
type schema_d_EntityInterface<T = any> = EntityInterface<T>;
1040-
type schema_d_CollectionArrayAdder<S extends PolymorphicInterface> = CollectionArrayAdder<S>;
1041-
type schema_d_CollectionInterface<S extends PolymorphicInterface = any, Args extends any[] = any[], Parent = any> = CollectionInterface<S, Args, Parent>;
1042-
type schema_d_CollectionFromSchema<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = CollectionFromSchema<S, Args, Parent>;
1043-
type schema_d_CollectionConstructor = CollectionConstructor;
1044-
type schema_d_StrategyFunction<T> = StrategyFunction<T>;
1045-
type schema_d_SchemaFunction<K = string, Args = any> = SchemaFunction<K, Args>;
1046-
type schema_d_MergeFunction = MergeFunction;
1047-
type schema_d_SchemaAttributeFunction<S extends Schema> = SchemaAttributeFunction<S>;
1048-
type schema_d_UnionResult<Choices extends EntityMap> = UnionResult<Choices>;
1049-
type schema_d_DefaultArgs = DefaultArgs;
10501050
declare namespace schema_d {
1051-
export {
1052-
schema_d_EntityMap as EntityMap,
1053-
schema_d_Invalidate as Invalidate,
1054-
schema_d_Query as Query,
1055-
schema_d_EntityMixin as EntityMixin,
1056-
EntityMixin as Entity,
1057-
schema_d_SchemaClass as SchemaClass,
1058-
Array$1 as Array,
1059-
schema_d_All as All,
1060-
Object$1 as Object,
1061-
schema_d_UnionConstructor as UnionConstructor,
1062-
schema_d_UnionInstance as UnionInstance,
1063-
schema_d_UnionRoot as UnionRoot,
1064-
schema_d_Union as Union,
1065-
schema_d_Values as Values,
1066-
schema_d_CollectionRoot as CollectionRoot,
1067-
schema_d_Collection as Collection,
1068-
schema_d_EntityInterface as EntityInterface,
1069-
schema_d_CollectionArrayAdder as CollectionArrayAdder,
1070-
schema_d_CollectionInterface as CollectionInterface,
1071-
schema_d_CollectionFromSchema as CollectionFromSchema,
1072-
schema_d_CollectionConstructor as CollectionConstructor,
1073-
schema_d_StrategyFunction as StrategyFunction,
1074-
schema_d_SchemaFunction as SchemaFunction,
1075-
schema_d_MergeFunction as MergeFunction,
1076-
schema_d_SchemaAttributeFunction as SchemaAttributeFunction,
1077-
schema_d_UnionResult as UnionResult,
1078-
schema_d_DefaultArgs as DefaultArgs,
1079-
};
1051+
export { schema_d_All as All, Array$1 as Array, schema_d_Collection as Collection, type schema_d_CollectionArrayAdder as CollectionArrayAdder, type schema_d_CollectionConstructor as CollectionConstructor, type schema_d_CollectionFromSchema as CollectionFromSchema, type schema_d_CollectionInterface as CollectionInterface, schema_d_CollectionRoot as CollectionRoot, type schema_d_DefaultArgs as DefaultArgs, EntityMixin as Entity, type schema_d_EntityInterface as EntityInterface, type schema_d_EntityMap as EntityMap, schema_d_EntityMixin as EntityMixin, schema_d_Invalidate as Invalidate, type schema_d_MergeFunction as MergeFunction, Object$1 as Object, schema_d_Query as Query, type schema_d_SchemaAttributeFunction as SchemaAttributeFunction, type schema_d_SchemaClass as SchemaClass, type schema_d_SchemaFunction as SchemaFunction, type schema_d_StrategyFunction as StrategyFunction, schema_d_Union as Union, type schema_d_UnionConstructor as UnionConstructor, type schema_d_UnionInstance as UnionInstance, type schema_d_UnionResult as UnionResult, schema_d_UnionRoot as UnionRoot, schema_d_Values as Values };
10801052
}
10811053

10821054
declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
@@ -1129,4 +1101,4 @@ declare const INVALID: unique symbol;
11291101
/** https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html#the-noinfer-utility-type */
11301102
type NI<T> = NoInfer<T>;
11311103

1132-
export { AbstractInstanceType, Array$1 as Array, Collection, DefaultArgs, Denormalize, DenormalizeNullable, DenormalizeNullableObject, DenormalizeObject, Endpoint, EndpointExtendOptions, EndpointExtraOptions, EndpointInstance, EndpointInstanceInterface, EndpointInterface, EndpointOptions, EndpointParam, EndpointToFunction, Entity, EntityFields, EntityMap, EntityMixin, ErrorTypes, ExpiryStatusInterface, ExtendableEndpoint, FetchFunction, INVALID, Invalidate, KeyofEndpointInstance, MutateEndpoint, NI, NetworkError, Normalize, NormalizeNullable, NormalizeObject, NormalizedEntity, NormalizedNullableObject, ObjectArgs, PolymorphicInterface, Queryable, ReadEndpoint, RecordClass, ResolveType, Schema, SchemaArgs, SchemaClass, SchemaSimple, SnapshotInterface, UnknownError, schema_d as schema, validateRequired };
1104+
export { type AbstractInstanceType, Array$1 as Array, Collection, type DefaultArgs, type Denormalize, type DenormalizeNullable, type DenormalizeNullableObject, type DenormalizeObject, Endpoint, type EndpointExtendOptions, type EndpointExtraOptions, type EndpointInstance, type EndpointInstanceInterface, type EndpointInterface, type EndpointOptions, type EndpointParam, type EndpointToFunction, Entity, type EntityFields, type EntityMap, EntityMixin, type ErrorTypes, type ExpiryStatusInterface, ExtendableEndpoint, type FetchFunction, INVALID, Invalidate, type KeyofEndpointInstance, type MutateEndpoint, type NI, type NetworkError, type Normalize, type NormalizeNullable, type NormalizeObject, type NormalizedEntity, type NormalizedNullableObject, type ObjectArgs, type PolymorphicInterface, type Queryable, type ReadEndpoint, type RecordClass, type ResolveType, type Schema, type SchemaArgs, type SchemaClass, type SchemaSimple, type SnapshotInterface, type UnknownError, schema_d as schema, validateRequired };

website/src/components/Playground/editor-types/@data-client/graphql.d.ts

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,74 +1009,46 @@ declare class Collection<
10091009
Parent = any,
10101010
> extends CollectionRoot<S, Args, Parent> {}
10111011

1012+
type schema_d_All<S extends EntityMap | EntityInterface = EntityMap | EntityInterface> = All<S>;
1013+
declare const schema_d_All: typeof All;
1014+
type schema_d_Collection<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = Collection<S, Args, Parent>;
1015+
declare const schema_d_Collection: typeof Collection;
1016+
type schema_d_CollectionArrayAdder<S extends PolymorphicInterface> = CollectionArrayAdder<S>;
1017+
type schema_d_CollectionConstructor = CollectionConstructor;
1018+
type schema_d_CollectionFromSchema<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = CollectionFromSchema<S, Args, Parent>;
1019+
type schema_d_CollectionInterface<S extends PolymorphicInterface = any, Args extends any[] = any[], Parent = any> = CollectionInterface<S, Args, Parent>;
1020+
declare const schema_d_CollectionRoot: typeof CollectionRoot;
1021+
type schema_d_DefaultArgs = DefaultArgs;
1022+
type schema_d_EntityInterface<T = any> = EntityInterface<T>;
10121023
type schema_d_EntityMap<T = any> = EntityMap<T>;
1024+
declare const schema_d_EntityMixin: typeof EntityMixin;
10131025
type schema_d_Invalidate<E extends EntityInterface & {
10141026
process: any;
10151027
}> = Invalidate<E>;
10161028
declare const schema_d_Invalidate: typeof Invalidate;
1029+
type schema_d_MergeFunction = MergeFunction;
10171030
type schema_d_Query<S extends Queryable | {
10181031
[k: string]: Queryable;
10191032
}, P extends (entries: Denormalize<S>, ...args: any) => any> = Query<S, P>;
10201033
declare const schema_d_Query: typeof Query;
1021-
declare const schema_d_EntityMixin: typeof EntityMixin;
1034+
type schema_d_SchemaAttributeFunction<S extends Schema> = SchemaAttributeFunction<S>;
10221035
type schema_d_SchemaClass<T = any, Args extends readonly any[] = any> = SchemaClass<T, Args>;
1023-
type schema_d_All<S extends EntityMap | EntityInterface = EntityMap | EntityInterface> = All<S>;
1024-
declare const schema_d_All: typeof All;
1036+
type schema_d_SchemaFunction<K = string, Args = any> = SchemaFunction<K, Args>;
1037+
type schema_d_StrategyFunction<T> = StrategyFunction<T>;
1038+
type schema_d_Union<Choices extends EntityMap, SchemaAttribute extends
1039+
| keyof AbstractInstanceType<Choices[keyof Choices]>
1040+
| SchemaFunction<keyof Choices>> = Union<Choices, SchemaAttribute>;
1041+
declare const schema_d_Union: typeof Union;
10251042
type schema_d_UnionConstructor = UnionConstructor;
10261043
type schema_d_UnionInstance<Choices extends EntityMap = any, Args extends EntityFields<
10271044
AbstractInstanceType<Choices[keyof Choices]>
10281045
> = EntityFields<AbstractInstanceType<Choices[keyof Choices]>>> = UnionInstance<Choices, Args>;
1046+
type schema_d_UnionResult<Choices extends EntityMap> = UnionResult<Choices>;
10291047
declare const schema_d_UnionRoot: typeof UnionRoot;
1030-
type schema_d_Union<Choices extends EntityMap, SchemaAttribute extends
1031-
| keyof AbstractInstanceType<Choices[keyof Choices]>
1032-
| SchemaFunction<keyof Choices>> = Union<Choices, SchemaAttribute>;
1033-
declare const schema_d_Union: typeof Union;
10341048
type schema_d_Values<Choices extends Schema = any> = Values<Choices>;
10351049
declare const schema_d_Values: typeof Values;
1036-
declare const schema_d_CollectionRoot: typeof CollectionRoot;
1037-
type schema_d_Collection<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = Collection<S, Args, Parent>;
1038-
declare const schema_d_Collection: typeof Collection;
1039-
type schema_d_EntityInterface<T = any> = EntityInterface<T>;
1040-
type schema_d_CollectionArrayAdder<S extends PolymorphicInterface> = CollectionArrayAdder<S>;
1041-
type schema_d_CollectionInterface<S extends PolymorphicInterface = any, Args extends any[] = any[], Parent = any> = CollectionInterface<S, Args, Parent>;
1042-
type schema_d_CollectionFromSchema<S extends any[] | PolymorphicInterface = any, Args extends any[] = DefaultArgs, Parent = any> = CollectionFromSchema<S, Args, Parent>;
1043-
type schema_d_CollectionConstructor = CollectionConstructor;
1044-
type schema_d_StrategyFunction<T> = StrategyFunction<T>;
1045-
type schema_d_SchemaFunction<K = string, Args = any> = SchemaFunction<K, Args>;
1046-
type schema_d_MergeFunction = MergeFunction;
1047-
type schema_d_SchemaAttributeFunction<S extends Schema> = SchemaAttributeFunction<S>;
1048-
type schema_d_UnionResult<Choices extends EntityMap> = UnionResult<Choices>;
1049-
type schema_d_DefaultArgs = DefaultArgs;
10501050
declare namespace schema_d {
1051-
export {
1052-
schema_d_EntityMap as EntityMap,
1053-
schema_d_Invalidate as Invalidate,
1054-
schema_d_Query as Query,
1055-
schema_d_EntityMixin as EntityMixin,
1056-
EntityMixin as Entity,
1057-
schema_d_SchemaClass as SchemaClass,
1058-
Array$1 as Array,
1059-
schema_d_All as All,
1060-
Object$1 as Object,
1061-
schema_d_UnionConstructor as UnionConstructor,
1062-
schema_d_UnionInstance as UnionInstance,
1063-
schema_d_UnionRoot as UnionRoot,
1064-
schema_d_Union as Union,
1065-
schema_d_Values as Values,
1066-
schema_d_CollectionRoot as CollectionRoot,
1067-
schema_d_Collection as Collection,
1068-
schema_d_EntityInterface as EntityInterface,
1069-
schema_d_CollectionArrayAdder as CollectionArrayAdder,
1070-
schema_d_CollectionInterface as CollectionInterface,
1071-
schema_d_CollectionFromSchema as CollectionFromSchema,
1072-
schema_d_CollectionConstructor as CollectionConstructor,
1073-
schema_d_StrategyFunction as StrategyFunction,
1074-
schema_d_SchemaFunction as SchemaFunction,
1075-
schema_d_MergeFunction as MergeFunction,
1076-
schema_d_SchemaAttributeFunction as SchemaAttributeFunction,
1077-
schema_d_UnionResult as UnionResult,
1078-
schema_d_DefaultArgs as DefaultArgs,
1079-
};
1051+
export { schema_d_All as All, Array$1 as Array, schema_d_Collection as Collection, type schema_d_CollectionArrayAdder as CollectionArrayAdder, type schema_d_CollectionConstructor as CollectionConstructor, type schema_d_CollectionFromSchema as CollectionFromSchema, type schema_d_CollectionInterface as CollectionInterface, schema_d_CollectionRoot as CollectionRoot, type schema_d_DefaultArgs as DefaultArgs, EntityMixin as Entity, type schema_d_EntityInterface as EntityInterface, type schema_d_EntityMap as EntityMap, schema_d_EntityMixin as EntityMixin, schema_d_Invalidate as Invalidate, type schema_d_MergeFunction as MergeFunction, Object$1 as Object, schema_d_Query as Query, type schema_d_SchemaAttributeFunction as SchemaAttributeFunction, type schema_d_SchemaClass as SchemaClass, type schema_d_SchemaFunction as SchemaFunction, type schema_d_StrategyFunction as StrategyFunction, schema_d_Union as Union, type schema_d_UnionConstructor as UnionConstructor, type schema_d_UnionInstance as UnionInstance, type schema_d_UnionResult as UnionResult, schema_d_UnionRoot as UnionRoot, schema_d_Values as Values };
10801052
}
10811053

10821054
declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
@@ -1170,4 +1142,4 @@ interface GQLError {
11701142
path: (string | number)[];
11711143
}
11721144

1173-
export { AbstractInstanceType, Array$1 as Array, Collection, DefaultArgs, Denormalize, DenormalizeNullable, DenormalizeNullableObject, DenormalizeObject, Endpoint, EndpointExtendOptions, EndpointExtraOptions, EndpointInstance, EndpointInstanceInterface, EndpointInterface, EndpointOptions, EndpointParam, EndpointToFunction, Entity, EntityFields, EntityMap, EntityMixin, ErrorTypes, ExpiryStatusInterface, ExtendableEndpoint, FetchFunction, GQLEndpoint, GQLEntity, GQLError, GQLNetworkError, GQLOptions, INVALID, Invalidate, KeyofEndpointInstance, MutateEndpoint, NI, NetworkError, Normalize, NormalizeNullable, NormalizeObject, NormalizedEntity, NormalizedNullableObject, ObjectArgs, PolymorphicInterface, Queryable, ReadEndpoint, RecordClass, ResolveType, Schema, SchemaArgs, SchemaClass, SchemaSimple, SnapshotInterface, UnknownError, schema_d as schema, validateRequired };
1145+
export { type AbstractInstanceType, Array$1 as Array, Collection, type DefaultArgs, type Denormalize, type DenormalizeNullable, type DenormalizeNullableObject, type DenormalizeObject, Endpoint, type EndpointExtendOptions, type EndpointExtraOptions, type EndpointInstance, type EndpointInstanceInterface, type EndpointInterface, type EndpointOptions, type EndpointParam, type EndpointToFunction, Entity, type EntityFields, type EntityMap, EntityMixin, type ErrorTypes, type ExpiryStatusInterface, ExtendableEndpoint, type FetchFunction, GQLEndpoint, GQLEntity, type GQLError, GQLNetworkError, type GQLOptions, INVALID, Invalidate, type KeyofEndpointInstance, type MutateEndpoint, type NI, type NetworkError, type Normalize, type NormalizeNullable, type NormalizeObject, type NormalizedEntity, type NormalizedNullableObject, type ObjectArgs, type PolymorphicInterface, type Queryable, type ReadEndpoint, type RecordClass, type ResolveType, type Schema, type SchemaArgs, type SchemaClass, type SchemaSimple, type SnapshotInterface, type UnknownError, schema_d as schema, validateRequired };

0 commit comments

Comments
 (0)