Code0 LogoCodeZero

@Documentation

Sets long-form documentation text

Sets long-form documentation text. Accepts multiple translations.

import { Documentation } from '@code0-tech/hercules';

Signature

@Documentation(...translations: Translation[]): ClassDecorator

Example

@Documentation(
  { code: 'en-US', content: 'Returns the n-th number in the Fibonacci sequence starting from 0.' },
)
export class FibonacciFunction extends FibonacciRuntimeFunction {}

Applies to

Function, RuntimeFunction, Event, RuntimeEvent

On this page