Options
All
  • Public
  • Public/Protected
  • All
Menu

Project Tora

Copyright (c) Plank Root.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.

Index

Platform

Const PURE_PARAMS

PURE_PARAMS: "PURE_PARAMS" = 'PURE_PARAMS'

Error

crash

  • crash(msg: any): never

reasonable

  • reasonable(code: number, msg: string, detail?: any): ReasonableError
  • Parameters

    • code: number
    • msg: string
    • Optional detail: any

    Returns ReasonableError

response

  • response<C>(ctx: C, data: any): never

throw_reasonable

  • throw_reasonable(code: number, msg: string, detail?: any): never
  • Parameters

    • code: number
    • msg: string
    • Optional detail: any

    Returns never

Other

Auth

Re-exports Auth

CacheWith

Re-exports CacheWith

Delete

Re-exports Delete

Disabled

Re-exports Disabled

EchoDependencies

Re-exports EchoDependencies

Get

Re-exports Get

Gunslinger

Re-exports Gunslinger

IGunslinger

Re-exports IGunslinger

Inject

Re-exports Inject

Lock

Re-exports Lock

Meta

Re-exports Meta

NoWrap

Re-exports NoWrap

Post

Re-exports Post

Put

Re-exports Put

Task

Re-exports Task

Timestamp

Renames and exports CurrentTimestamp

ToraModule

Re-exports ToraModule

ToraRoot

Re-exports ToraRoot

ToraRouter

Re-exports ToraRouter

ToraService

Re-exports ToraService

ToraTrigger

Re-exports ToraTrigger

Private Path

Path<T, Key>: Key extends string ? Exclude<T[Key], undefined> extends any[] ? `${Key}.${Path<Exclude<T[Key], undefined>, Exclude<keyof Exclude<T[Key], undefined>, keyof any[] & string>>}` | Key : Exclude<T[Key], undefined> extends Record<string, any> ? `${Key}.${Path<Exclude<T[Key], undefined>>}` | Key : Key : never

Type parameters

  • T

  • Key: keyof T = keyof T

Private PathValue

PathValue<T, P>: P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? Rest extends Path<Exclude<T[Key], undefined>> ? PathValue<Exclude<T[Key], undefined>, Rest> : never : never : P extends keyof T ? T[P] : never

Type parameters

  • T: Object

  • P: Path<T>

ValueType

ValueType: "exist" | "function" | "object" | "array" | "nonEmptyArray" | "null" | "nonNull" | "string" | "nonEmptyString" | "number" | "nonZeroNumber" | "boolean" | "true" | "false"

Copyright (c) Plank Root.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.

Generated using TypeDoc