@adviser/cement - v0.0.0
    Preparing search index...

    Interface URIInterface<R>

    interface URIInterface<R extends URIInterface<R>> {
        getParams: Iterable<[string, string]>;
        hasParam(key: string): boolean;
        getParam<T extends string | undefined>(
            key: string | OneKey<string, string>,
            def?: T,
        ): T extends string ? string : string | undefined;
        getParamResult(
            key: string,
            msgFn?: (key: string) => string,
        ): Result<string>;
        getParamsResult(...keys: KeysParam): Result<Record<string, string>>;
        match(other: CoerceURI): MatchResult;
        clone(): R;
        asURL(): URL;
        toString(): string;
        toJSON(): string;
        asObj(...strips: StripCommand[]): Partial<HostURIObject | PathURIObject>;
    }

    Type Parameters

    Implemented by

    Index

    Properties

    getParams: Iterable<[string, string]>

    Methods

    • Parameters

      • key: string

      Returns boolean

    • Type Parameters

      • T extends string | undefined

      Parameters

      • key: string | OneKey<string, string>
      • Optionaldef: T

      Returns T extends string ? string : string | undefined

    • Parameters

      • key: string
      • OptionalmsgFn: (key: string) => string

      Returns Result<string>

    • Returns string

    • Returns string