UNPKG

type-arango

Version:

ArangoDB Foxx decorators and utilities for TypeScript

31 lines (30 loc) 909 B
import * as Joi from 'joi'; export declare namespace Type { class I18n<T = string> { [key: string]: T; static _typeArango: string; static schema: Joi.ObjectSchema; static forClient(val: any, { req, session }: any): any; } class Currencies { [key: string]: number; static _typeArango: string; static forClient(val: any, { req, session }: any): any; } /** * Sets current Date to attribute when a new document is inserted */ class DateInsert { static _typeArango: string; static schema: Joi.DateSchema; static beforeInsert(): Date; } /** * Sets current Date to attribute whenever the document is updated */ class DateUpdate { static _typeArango: string; static schema: Joi.DateSchema; static beforeUpdate(): Date; } }