type-arango
Version:
ArangoDB Foxx decorators and utilities for TypeScript
18 lines (17 loc) • 549 B
TypeScript
import { Schema } from 'joi';
export declare type ScalarType = 'any' | 'string' | 'number' | 'boolean' | 'enum' | string;
export declare class Scalar {
type: string;
name?: string;
joi: Schema;
isRequired: boolean;
isArray: boolean;
constructor(type?: ScalarType, name?: string);
toString(): string;
get query(): string;
get path(): string;
get example(): any;
get requiredIcon(): string;
static iconRequired(isRequired: boolean): string;
static example(type: ScalarType): any;
}