Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration fenceKind

The kind of fencing to apply to build_includ replcement Extend enum fenceKind to have a parse method

Index

Enumeration members

Functions

Enumeration members

escape

escape: = 5

Apply escape.
See Also: Class EscapeFence

flex

flex: = 2

Apply flex. See Also: Class FlexFence

multiFlex

multiFlex: = 3

Pseudo Fence.
Combines EscapeFence, TildeFence and StrictFence in this order.

none

none: = 0

No fencing

strict

strict: = 1

Apply strict.
See Also: Class StrictFence

tilde

tilde: = 4

Apply tilde.
See Also: Class TildeFence

Functions

Const parse

  • parse(value: string | number, anyCase?: boolean, minValue?: number, maxValue?: number): fenceKind
  • Parses a value to enum of fenceKind

    Parameters

    • value: string | number

      The string or number to convert into enum

    • Default value anyCase: boolean = true

      If true will match an enum value of any case; Otherwise, case must match.

    • Default value minValue: number = 0

      The minimum value that is accepted as a valid enum value.

    • Default value maxValue: number = 5

      The maximum value that is accepted as a valid enum value.

    Returns fenceKind

    The value converted into fenceKind

Generated using TypeDoc