Function rejectInvalidOptions

  • For use in per-dialect implementation of methods to warn the user when they use an option that TypeScript declares as valid, but that the dialect they use does not support.

    Parameters

    • methodName: string

      The name of the method that received the options

    • dialectName: string

      The name of the dialect to which the implementation belongs

    • allSupportableOptions: Set<string>

      All options that this method can support. The ones that are declared in TypeScript typings.

    • supportedOptions: Set<string>

      The subset of options that this dialect actually does support.

    • receivedOptions: Record<string, unknown>

      The user provided options that were passed to the method.

    Returns void

Generated using TypeDoc