Interface NamingConvention<A, R>

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

interface NamingConvention<A, R> {
    create: ((v) => Component);
    match: ((comp) => boolean);
    parse: ((comp) => R);
}

Type Parameters

  • A

    Input type to construct component.

  • R = A

    Output type to interpret component.

Properties

Properties

create: ((v) => Component)

Create a component from input value following this naming convention.

Type declaration

match: ((comp) => boolean)

Determine if a component follows this naming convention.

Type declaration

    • (comp): boolean
    • Parameters

      Returns boolean

parse: ((comp) => R)

Parse value of a matched component.

Type declaration

Generated using TypeDoc