@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
98 lines • 2.59 kB
TypeScript
import type { AttributeType } from "./AttributeType";
import { ListType } from "./AttributeType";
export declare class AttributeTypeHelper {
protected readonly type: AttributeType;
private assertionOptions;
constructor(type: AttributeType);
/**
* Just an helper to get the wrapped type in readonlyase of a list, useful for the assertions
*/
private getTypeForAssertion;
isBoolean(options?: {
includeLists: boolean;
}): boolean;
isID(options?: {
includeLists: boolean;
}): boolean;
isInt(options?: {
includeLists: boolean;
}): boolean;
isFloat(options?: {
includeLists: boolean;
}): boolean;
isString(options?: {
includeLists: boolean;
}): boolean;
isCartesianPoint(options?: {
includeLists: boolean;
}): boolean;
isPoint(options?: {
includeLists: boolean;
}): boolean;
isBigInt(options?: {
includeLists: boolean;
}): boolean;
isDate(options?: {
includeLists: boolean;
}): boolean;
isDateTime(options?: {
includeLists: boolean;
}): boolean;
isLocalDateTime(options?: {
includeLists: boolean;
}): boolean;
isTime(options?: {
includeLists: boolean;
}): boolean;
isLocalTime(options?: {
includeLists: boolean;
}): boolean;
isDuration(options?: {
includeLists: boolean;
}): boolean;
isObject(options?: {
includeLists: boolean;
}): boolean;
isEnum(options?: {
includeLists: boolean;
}): boolean;
isInterface(options?: {
includeLists: boolean;
}): boolean;
isUnion(options?: {
includeLists: boolean;
}): boolean;
isList(): this is this & {
type: ListType;
};
isInput(options?: {
includeLists: boolean;
}): boolean;
isUserScalar(options?: {
includeLists: boolean;
}): boolean;
isTemporal(options?: {
includeLists: boolean;
}): boolean;
isListElementRequired(): boolean;
isRequired(): boolean;
isGraphQLBuiltInScalar(options?: {
includeLists: boolean;
}): boolean;
isSpatial(options?: {
includeLists: boolean;
}): boolean;
isAbstract(options?: {
includeLists: boolean;
}): boolean;
isNumeric(options?: {
includeLists: boolean;
}): boolean;
/**
* Returns true for both built-in and user-defined scalars
**/
isScalar(options?: {
includeLists: boolean;
}): boolean;
}
//# sourceMappingURL=AttributeTypeHelper.d.ts.map