Interface NamingConvention<A, R>

Naming convention, which interprets a name component in a specific way.

Type Parameters

  • A

    input type to construct component.

  • R = A

    output type to interpret component.

Hierarchy

  • NamingConvention

Properties

Properties

create: ((v) => Component)

Type declaration

    • (v): Component
    • Create a component from input value following this naming convention.

      Parameters

      • v: A

      Returns Component

match: ((comp) => boolean)

Type declaration

    • (comp): boolean
    • Determine if a component follows this naming convention.

      Parameters

      Returns boolean

parse: ((comp) => R)

Type declaration

    • (comp): R
    • Parse value of a matched component.

      Parameters

      Returns R

Generated using TypeDoc