tangweijie 5099f2e87e Initial commit: Vue3 + TypeScript 前端项目
- Vue 3 + TypeScript + Element Plus 前端界面
- Pinia 状态管理
- Vue Router 4 路由管理
- Axios HTTP 客户端
- MSW (Mock Service Worker) 开发环境模拟
- 账户管理界面 (列表、详情、三科目余额展示)
- 交易管理界面 (列表、详情)
- 对账管理界面 (三账校验)
- 完善的 API 客户端封装
- Docker 容器化配置
- Nginx 配置用于生产环境
2026-01-05 17:57:11 +08:00

81 lines
2.5 KiB
TypeScript

import type { SchemaCoordinateNode } from '../language/ast';
import type { Source } from '../language/source';
import type {
GraphQLArgument,
GraphQLEnumType,
GraphQLEnumValue,
GraphQLField,
GraphQLInputField,
GraphQLInputObjectType,
GraphQLInterfaceType,
GraphQLNamedType,
GraphQLObjectType,
} from '../type/definition';
import type { GraphQLDirective } from '../type/directives';
import type { GraphQLSchema } from '../type/schema';
/**
* A resolved schema element may be one of the following kinds:
*/
export interface ResolvedNamedType {
readonly kind: 'NamedType';
readonly type: GraphQLNamedType;
}
export interface ResolvedField {
readonly kind: 'Field';
readonly type: GraphQLObjectType | GraphQLInterfaceType;
readonly field: GraphQLField<unknown, unknown>;
}
export interface ResolvedInputField {
readonly kind: 'InputField';
readonly type: GraphQLInputObjectType;
readonly inputField: GraphQLInputField;
}
export interface ResolvedEnumValue {
readonly kind: 'EnumValue';
readonly type: GraphQLEnumType;
readonly enumValue: GraphQLEnumValue;
}
export interface ResolvedFieldArgument {
readonly kind: 'FieldArgument';
readonly type: GraphQLObjectType | GraphQLInterfaceType;
readonly field: GraphQLField<unknown, unknown>;
readonly fieldArgument: GraphQLArgument;
}
export interface ResolvedDirective {
readonly kind: 'Directive';
readonly directive: GraphQLDirective;
}
export interface ResolvedDirectiveArgument {
readonly kind: 'DirectiveArgument';
readonly directive: GraphQLDirective;
readonly directiveArgument: GraphQLArgument;
}
export declare type ResolvedSchemaElement =
| ResolvedNamedType
| ResolvedField
| ResolvedInputField
| ResolvedEnumValue
| ResolvedFieldArgument
| ResolvedDirective
| ResolvedDirectiveArgument;
/**
* A schema coordinate is resolved in the context of a GraphQL schema to
* uniquely identify a schema element. It returns undefined if the schema
* coordinate does not resolve to a schema element, meta-field, or introspection
* schema element. It will throw if the containing schema element (if
* applicable) does not exist.
*
* https://spec.graphql.org/draft/#sec-Schema-Coordinates.Semantics
*/
export declare function resolveSchemaCoordinate(
schema: GraphQLSchema,
schemaCoordinate: string | Source,
): ResolvedSchemaElement | undefined;
/**
* Resolves schema coordinate from a parsed SchemaCoordinate node.
*/
export declare function resolveASTSchemaCoordinate(
schema: GraphQLSchema,
schemaCoordinate: SchemaCoordinateNode,
): ResolvedSchemaElement | undefined;