INNER CODE UNIT · TypeScript

InvalidFlagException

tenseijs/tensei · packages/cli/src/Exceptions/index.ts:52

export class InvalidFlagException extends Exception {
  public command?: CommandConstructorContract
  public flagName: string = ''
  public expectedType: string = ''

  /**
   * Flag type validation failed.
   */
  public static invoke(
    prop: string,
    expected: string,
    command?: CommandConstructorContract
  ): InvalidFlagException {
    let article: string = 'a'

    if (expected === 'number') {
      expected = 'numeric'
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…