From e21c59d405b21f210c32e98b473e9a128e685b8e Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Sat, 23 Mar 2024 11:44:50 +0000 Subject: [PATCH] docs: publishing gh-pages [skip ci] --- functions/asArray.html | 4 ++-- functions/asBoolean.html | 4 ++-- functions/asDictionary.html | 4 ++-- functions/asFunction.html | 4 ++-- functions/asInstance.html | 4 ++-- functions/asJsonArray.html | 4 ++-- functions/asJsonMap.html | 4 ++-- functions/asNumber.html | 4 ++-- functions/asObject.html | 4 ++-- functions/asPlainObject.html | 4 ++-- functions/asString.html | 4 ++-- functions/assert.html | 2 +- functions/assertAnyJson.html | 2 +- functions/assertArray.html | 2 +- functions/assertBoolean.html | 2 +- functions/assertDictionary.html | 2 +- functions/assertFunction.html | 2 +- functions/assertInstance.html | 2 +- functions/assertJsonArray.html | 2 +- functions/assertJsonMap.html | 2 +- functions/assertNonNull.html | 2 +- functions/assertNumber.html | 2 +- functions/assertObject.html | 2 +- functions/assertPlainObject.html | 2 +- functions/assertString.html | 2 +- functions/coerceAnyJson.html | 4 ++-- functions/coerceJsonArray.html | 4 ++-- functions/coerceJsonMap.html | 4 ++-- functions/definiteEntriesOf.html | 2 +- functions/definiteKeysOf.html | 2 +- functions/definiteValuesOf.html | 2 +- functions/ensure.html | 2 +- functions/ensureAnyJson.html | 2 +- functions/ensureArray.html | 2 +- functions/ensureBoolean.html | 2 +- functions/ensureDictionary.html | 2 +- functions/ensureFunction.html | 2 +- functions/ensureInstance.html | 2 +- functions/ensureJsonArray.html | 2 +- functions/ensureJsonMap.html | 2 +- functions/ensureNumber.html | 2 +- functions/ensureObject.html | 2 +- functions/ensurePlainObject.html | 2 +- functions/ensureString.html | 2 +- functions/entriesOf.html | 2 +- functions/get.html | 2 +- functions/getAnyJson.html | 4 ++-- functions/getArray.html | 4 ++-- functions/getBoolean.html | 4 ++-- functions/getDictionary.html | 4 ++-- functions/getFunction.html | 4 ++-- functions/getInstance.html | 4 ++-- functions/getJsonArray.html | 4 ++-- functions/getJsonMap.html | 4 ++-- functions/getNumber.html | 4 ++-- functions/getObject.html | 4 ++-- functions/getPlainObject.html | 4 ++-- functions/getString.html | 4 ++-- functions/has.html | 2 +- functions/hasAnyJson.html | 2 +- functions/hasArray.html | 2 +- functions/hasBoolean.html | 2 +- functions/hasDictionary.html | 2 +- functions/hasFunction.html | 2 +- functions/hasInstance.html | 2 +- functions/hasJsonArray.html | 2 +- functions/hasJsonMap.html | 2 +- functions/hasNumber.html | 2 +- functions/hasObject.html | 2 +- functions/hasPlainObject.html | 2 +- functions/hasString.html | 2 +- functions/isAnyJson.html | 2 +- functions/isArray.html | 2 +- functions/isArrayLike.html | 2 +- functions/isBoolean.html | 2 +- functions/isClassAssignableTo.html | 2 +- functions/isDictionary.html | 2 +- functions/isFunction.html | 2 +- functions/isInstance.html | 2 +- functions/isJsonArray.html | 2 +- functions/isJsonMap.html | 2 +- functions/isKeyOf.html | 2 +- functions/isNumber.html | 2 +- functions/isObject.html | 2 +- functions/isPlainObject.html | 2 +- functions/isString.html | 2 +- functions/keysOf.html | 2 +- functions/toAnyJson.html | 4 ++-- functions/toJsonArray.html | 6 +++--- functions/toJsonMap.html | 6 +++--- functions/valuesOf.html | 2 +- interfaces/AnyArray.html | 2 +- interfaces/AnyArrayLike.html | 2 +- interfaces/Dictionary.html | 2 +- interfaces/JsonArray.html | 2 +- interfaces/JsonMap.html | 2 +- types/AnyConstructor.html | 2 +- types/AnyFunction.html | 2 +- types/AnyJson.html | 2 +- types/JsonCollection.html | 2 +- types/JsonPrimitive.html | 2 +- types/KeyOf.html | 2 +- types/KeyValue.html | 2 +- types/Literals.html | 2 +- types/LiteralsRecord.html | 2 +- types/Many.html | 2 +- types/NonOptional.html | 2 +- types/Nullable.html | 2 +- types/Omit.html | 2 +- types/Optional.html | 2 +- types/Overwrite.html | 2 +- types/ReadWrite.html | 2 +- types/RequiredNonNullable.html | 2 +- types/RequiredNonOptional.html | 2 +- types/View.html | 2 +- 115 files changed, 146 insertions(+), 146 deletions(-) diff --git a/functions/asArray.html b/functions/asArray.html index 007ed969..a45ff3b5 100644 --- a/functions/asArray.html +++ b/functions/asArray.html @@ -1,6 +1,6 @@ asArray | @salesforce/ts-types
  • Narrows an unknown value to an Array if it is type-compatible, or returns undefined otherwise.

    Type Parameters

    • T = unknown

    Parameters

    • value: unknown

      The value to test.

      -

    Returns Optional<T[]>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    +

Returns Optional<T[]>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Type Parameters

    • T = unknown

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: T[]

      The default to return if value was undefined or of the incorrect type.

      -

    Returns T[]

  • \ No newline at end of file +

    Returns T[]

    \ No newline at end of file diff --git a/functions/asBoolean.html b/functions/asBoolean.html index 8f1d5a66..0ee3650c 100644 --- a/functions/asBoolean.html +++ b/functions/asBoolean.html @@ -1,6 +1,6 @@ asBoolean | @salesforce/ts-types
    • Narrows an unknown value to a boolean if it is type-compatible, or returns undefined otherwise.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<boolean>

    • Narrows an unknown value to a boolean if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<boolean>

  • Narrows an unknown value to a boolean if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: boolean

      The default to return if value was undefined or of the incorrect type.

      -

    Returns boolean

  • \ No newline at end of file +

    Returns boolean

    \ No newline at end of file diff --git a/functions/asDictionary.html b/functions/asDictionary.html index 1852baae..d9acb5e9 100644 --- a/functions/asDictionary.html +++ b/functions/asDictionary.html @@ -1,6 +1,6 @@ asDictionary | @salesforce/ts-types
    • Narrows an unknown value to a Dictionary<T> if it is type-compatible, or returns undefined otherwise.

      Type Parameters

      • T = unknown

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<Dictionary<T>>

    • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<Dictionary<T>>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Type Parameters

    • T = unknown

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: Dictionary<T>

      The default to return if value was undefined or of the incorrect type.

      -

    Returns Dictionary<T>

  • \ No newline at end of file +

    Returns Dictionary<T>

    \ No newline at end of file diff --git a/functions/asFunction.html b/functions/asFunction.html index d63aa39d..5bb29bdc 100644 --- a/functions/asFunction.html +++ b/functions/asFunction.html @@ -1,6 +1,6 @@ asFunction | @salesforce/ts-types
    • Narrows an unknown value to an AnyFunction if it is type-compatible, or returns undefined otherwise.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<AnyFunction>

    • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<AnyFunction>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: AnyFunction<unknown>

      The default to return if value was undefined or of the incorrect type.

      -

    Returns AnyFunction

  • \ No newline at end of file +

    Returns AnyFunction

    \ No newline at end of file diff --git a/functions/asInstance.html b/functions/asInstance.html index 3e493ba4..952962f5 100644 --- a/functions/asInstance.html +++ b/functions/asInstance.html @@ -1,7 +1,7 @@ asInstance | @salesforce/ts-types
    • Narrows an unknown value to an instance of constructor type T if it is type-compatible, or returns undefined otherwise.

      Type Parameters

      Parameters

      • value: unknown

        The value to test.

        -
      • ctor: C

      Returns Optional<InstanceType<C>>

    • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

      +
    • ctor: C

    Returns Optional<InstanceType<C>>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Type Parameters

    Parameters

    • value: unknown

      The value to test.

    • ctor: C
    • defaultValue: InstanceType<C>

      The default to return if value was undefined or of the incorrect type.

      -

    Returns InstanceType<C>

  • \ No newline at end of file +

    Returns InstanceType<C>

    \ No newline at end of file diff --git a/functions/asJsonArray.html b/functions/asJsonArray.html index b7473b1a..420f32d1 100644 --- a/functions/asJsonArray.html +++ b/functions/asJsonArray.html @@ -1,6 +1,6 @@ asJsonArray | @salesforce/ts-types
    • Narrows an AnyJson value to a JsonArray if it is type-compatible, or returns undefined otherwise.

      Parameters

      Returns Optional<JsonArray>

    • Narrows an AnyJson value to a JsonArray if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<JsonArray>

  • Narrows an AnyJson value to a JsonArray if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    • defaultValue: JsonArray

      The default to return if the value was undefined or of the incorrect type.

      -

    Returns JsonArray

  • \ No newline at end of file +

    Returns JsonArray

    \ No newline at end of file diff --git a/functions/asJsonMap.html b/functions/asJsonMap.html index a4799002..9b493b19 100644 --- a/functions/asJsonMap.html +++ b/functions/asJsonMap.html @@ -1,6 +1,6 @@ asJsonMap | @salesforce/ts-types
    • Narrows an AnyJson value to a JsonMap if it is type-compatible, or returns undefined otherwise.

      Parameters

      Returns Optional<JsonMap>

    • Narrows an AnyJson value to a JsonMap if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<JsonMap>

  • Narrows an AnyJson value to a JsonMap if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    • defaultValue: JsonMap

      The default to return if value was undefined or of the incorrect type.

      -

    Returns JsonMap

  • \ No newline at end of file +

    Returns JsonMap

    \ No newline at end of file diff --git a/functions/asNumber.html b/functions/asNumber.html index aa6e00b6..8730f19c 100644 --- a/functions/asNumber.html +++ b/functions/asNumber.html @@ -1,6 +1,6 @@ asNumber | @salesforce/ts-types
    • Narrows an unknown value to a number if it is type-compatible, or returns undefined otherwise.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<number>

    • Narrows an unknown value to a number if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<number>

  • Narrows an unknown value to a number if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: number

      The default to return if value was undefined or of the incorrect type.

      -

    Returns number

  • \ No newline at end of file +

    Returns number

    \ No newline at end of file diff --git a/functions/asObject.html b/functions/asObject.html index 4440ab5d..697060fa 100644 --- a/functions/asObject.html +++ b/functions/asObject.html @@ -1,6 +1,6 @@ asObject | @salesforce/ts-types
    • Narrows an unknown value to an object if it is type-compatible, or returns undefined otherwise.

      Type Parameters

      • T extends object = object

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<T>

    • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<T>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Type Parameters

    • T extends object = object

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: T

      The default to return if value was undefined or of the incorrect type.

      -

    Returns T

  • \ No newline at end of file +

    Returns T

    \ No newline at end of file diff --git a/functions/asPlainObject.html b/functions/asPlainObject.html index b1579bf6..4dba9647 100644 --- a/functions/asPlainObject.html +++ b/functions/asPlainObject.html @@ -1,6 +1,6 @@ asPlainObject | @salesforce/ts-types

    Function asPlainObject

    • Narrows an unknown value to a plain object if it is type-compatible, or returns undefined otherwise.

      Type Parameters

      • T extends object = object

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<T>

    • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<T>

  • Narrows an unknown value to an object if it is type-compatible, or returns the provided default otherwise.

    Type Parameters

    • T extends object = object

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: T

      The default to return if value was undefined or of the incorrect type.

      -

    Returns T

  • \ No newline at end of file +

    Returns T

    \ No newline at end of file diff --git a/functions/asString.html b/functions/asString.html index b50bc293..dd9c2085 100644 --- a/functions/asString.html +++ b/functions/asString.html @@ -1,6 +1,6 @@ asString | @salesforce/ts-types
    • Narrows an unknown value to a string if it is type-compatible, or returns undefined otherwise.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns Optional<string>

    • Narrows an unknown value to a string if it is type-compatible, or returns the provided default otherwise.

      +

    Returns Optional<string>

  • Narrows an unknown value to a string if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: string

      The default to return if value was undefined or of the incorrect type.

      -

    Returns string

  • \ No newline at end of file +

    Returns string

    \ No newline at end of file diff --git a/functions/assert.html b/functions/assert.html index 6ca9475a..ecb748ff 100644 --- a/functions/assert.html +++ b/functions/assert.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts condition

    Throws

    AssertionFailedError If the assertion failed.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertAnyJson.html b/functions/assertAnyJson.html index 549c4a83..7c2029ab 100644 --- a/functions/assertAnyJson.html +++ b/functions/assertAnyJson.html @@ -3,4 +3,4 @@

    Parameters

    Returns asserts value is AnyJson

    Throws

    AssertionFailedError If the value was not a JSON value type.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertArray.html b/functions/assertArray.html index 74874a3f..764c09e0 100644 --- a/functions/assertArray.html +++ b/functions/assertArray.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is AnyArray<unknown>

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertBoolean.html b/functions/assertBoolean.html index ba612786..fb6d461d 100644 --- a/functions/assertBoolean.html +++ b/functions/assertBoolean.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is boolean

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertDictionary.html b/functions/assertDictionary.html index 485b7b6d..52b01abc 100644 --- a/functions/assertDictionary.html +++ b/functions/assertDictionary.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns asserts value is Dictionary<T>

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertFunction.html b/functions/assertFunction.html index 790b22d1..0c9d3719 100644 --- a/functions/assertFunction.html +++ b/functions/assertFunction.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is AnyFunction<unknown>

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertInstance.html b/functions/assertInstance.html index 4b13200b..94810bcc 100644 --- a/functions/assertInstance.html +++ b/functions/assertInstance.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns asserts value is InstanceType<C>

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertJsonArray.html b/functions/assertJsonArray.html index 3b34f50c..0c290c5a 100644 --- a/functions/assertJsonArray.html +++ b/functions/assertJsonArray.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is JsonArray

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertJsonMap.html b/functions/assertJsonMap.html index 0f381d98..ea05093c 100644 --- a/functions/assertJsonMap.html +++ b/functions/assertJsonMap.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is JsonMap

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertNonNull.html b/functions/assertNonNull.html index 96a76b8f..785b281d 100644 --- a/functions/assertNonNull.html +++ b/functions/assertNonNull.html @@ -9,4 +9,4 @@

    Type Parameters

    Parameters

    Returns asserts value is T

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertNumber.html b/functions/assertNumber.html index b7a1b2a3..7b3ec8f9 100644 --- a/functions/assertNumber.html +++ b/functions/assertNumber.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is number

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertObject.html b/functions/assertObject.html index 2d12a53b..35794953 100644 --- a/functions/assertObject.html +++ b/functions/assertObject.html @@ -2,4 +2,4 @@

    Type Parameters

    Parameters

    Returns asserts value is T

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertPlainObject.html b/functions/assertPlainObject.html index 4b4c4ed5..7d1bafd4 100644 --- a/functions/assertPlainObject.html +++ b/functions/assertPlainObject.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns asserts value is T

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/assertString.html b/functions/assertString.html index faab435e..566c3b62 100644 --- a/functions/assertString.html +++ b/functions/assertString.html @@ -2,4 +2,4 @@

    Parameters

    Returns asserts value is string

    Throws

    AssertionFailedError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/coerceAnyJson.html b/functions/coerceAnyJson.html index 563ec9ab..8096855c 100644 --- a/functions/coerceAnyJson.html +++ b/functions/coerceAnyJson.html @@ -4,7 +4,7 @@ function, it's the responsibility of the caller to understand the risks of making such a shallow type assertion over the value data.

    Parameters

    Returns Optional<AnyJson>

  • Narrows an unknown value to an AnyJson if it is type-compatible, or returns the provided default otherwise.

    +
  • Returns Optional<AnyJson>

  • Narrows an unknown value to an AnyJson if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: unknown

      The value to test.

    • defaultValue: AnyJson

      The default to return if value was undefined or of the incorrect type.

      -

    Returns AnyJson

  • \ No newline at end of file +

    Returns AnyJson

    \ No newline at end of file diff --git a/functions/coerceJsonArray.html b/functions/coerceJsonArray.html index 44a4cdcd..b65e4860 100644 --- a/functions/coerceJsonArray.html +++ b/functions/coerceJsonArray.html @@ -3,10 +3,10 @@ instead when the value array cannot be guaranteed to be JSON-compatible and you want an assurance of runtime type safety. This is a shortcut for writing asJsonArray(coerceAnyJson(value)).

    Type Parameters

    Parameters

    Returns Optional<JsonArray>

  • Narrows an array of type T to a JsonArray using a shallow type-compatibility check. Use this when the source of +

  • Returns Optional<JsonArray>

  • Narrows an array of type T to a JsonArray using a shallow type-compatibility check. Use this when the source of the array is known to be JSON-compatible and you want simple type coercion to a JsonArray. Use toJsonArray instead when the value array cannot be guaranteed to be JSON-compatible and you want an assurance of runtime type safety. This is a shortcut for writing asJsonArray(coerceAnyJson(value)) ?? defaultValue.

    Type Parameters

    • T

    Parameters

    • value: Nullable<T[]>

      The array to coerce.

    • defaultValue: JsonArray

      The default to return if value was not defined.

      -

    Returns JsonArray

  • \ No newline at end of file +

    Returns JsonArray

    \ No newline at end of file diff --git a/functions/coerceJsonMap.html b/functions/coerceJsonMap.html index c823791f..7d5438d0 100644 --- a/functions/coerceJsonMap.html +++ b/functions/coerceJsonMap.html @@ -3,10 +3,10 @@ instead when the value object cannot be guaranteed to be JSON-compatible and you want an assurance of runtime type safety. This is a shortcut for writing asJsonMap(coerceAnyJson(value)).

    Type Parameters

    Parameters

    Returns Optional<JsonMap>

  • Narrows an object of type T to a JsonMap using a shallow type-compatibility check. Use this when the source of +

  • Returns Optional<JsonMap>

  • Narrows an object of type T to a JsonMap using a shallow type-compatibility check. Use this when the source of the object is known to be JSON-compatible and you want simple type coercion to a JsonMap. Use toJsonMap instead when the value object cannot be guaranteed to be JSON-compatible and you want an assurance of runtime type safety. This is a shortcut for writing asJsonMap(coerceAnyJson(value)) ?? defaultValue.

    Type Parameters

    • T extends object

    Parameters

    • value: Nullable<T>

      The object to coerce.

    • defaultValue: JsonMap

      The default to return if value was not defined.

      -

    Returns JsonMap

  • \ No newline at end of file +

    Returns JsonMap

    \ No newline at end of file diff --git a/functions/definiteEntriesOf.html b/functions/definiteEntriesOf.html index 3a4caef1..36cd41e8 100644 --- a/functions/definiteEntriesOf.html +++ b/functions/definiteEntriesOf.html @@ -4,4 +4,4 @@ null values.

    See also caveats outlined in entriesOf.

    Type Parameters

    Parameters

    Returns [K, V][]

    \ No newline at end of file +

    Returns [K, V][]

    \ No newline at end of file diff --git a/functions/definiteKeysOf.html b/functions/definiteKeysOf.html index ba3ff2a3..a6065766 100644 --- a/functions/definiteKeysOf.html +++ b/functions/definiteKeysOf.html @@ -2,4 +2,4 @@ This can be convenient for enumerating the keys of definitely assigned properties in an object or Dictionary.

    See also caveats outlined in keysOf.

    Type Parameters

    Parameters

    Returns KeyOf<T>[]

    \ No newline at end of file +

    Returns KeyOf<T>[]

    \ No newline at end of file diff --git a/functions/definiteValuesOf.html b/functions/definiteValuesOf.html index ab5dec20..ba6f0ef8 100644 --- a/functions/definiteValuesOf.html +++ b/functions/definiteValuesOf.html @@ -2,4 +2,4 @@ This can be convenient for enumerating the values of unknown objects with optional properties (including Dictionarys) without worrying about performing checks against possibly undefined or null values.

    Type Parameters

    Parameters

    Returns NonNullable<T[KeyOf<T>]>[]

    \ No newline at end of file +

    Returns NonNullable<T[KeyOf<T>]>[]

    \ No newline at end of file diff --git a/functions/ensure.html b/functions/ensure.html index 926f1b5c..d6088a7c 100644 --- a/functions/ensure.html +++ b/functions/ensure.html @@ -9,4 +9,4 @@

    Type Parameters

    Parameters

    Returns T

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureAnyJson.html b/functions/ensureAnyJson.html index 4fde8d63..48d903b1 100644 --- a/functions/ensureAnyJson.html +++ b/functions/ensureAnyJson.html @@ -3,4 +3,4 @@

    Parameters

    Returns AnyJson

    Throws

    UnexpectedValueTypeError If the value was not a JSON value type.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureArray.html b/functions/ensureArray.html index 9065ebc5..f2164523 100644 --- a/functions/ensureArray.html +++ b/functions/ensureArray.html @@ -2,4 +2,4 @@

    Type Parameters

    Parameters

    Returns T[]

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureBoolean.html b/functions/ensureBoolean.html index c6581bc7..ecd4c852 100644 --- a/functions/ensureBoolean.html +++ b/functions/ensureBoolean.html @@ -2,4 +2,4 @@

    Parameters

    Returns boolean

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureDictionary.html b/functions/ensureDictionary.html index a854cc46..527a3f30 100644 --- a/functions/ensureDictionary.html +++ b/functions/ensureDictionary.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns Dictionary<T>

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureFunction.html b/functions/ensureFunction.html index 90c89816..96721e4a 100644 --- a/functions/ensureFunction.html +++ b/functions/ensureFunction.html @@ -2,4 +2,4 @@

    Parameters

    Returns AnyFunction

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureInstance.html b/functions/ensureInstance.html index 151bc1bb..3c52a56c 100644 --- a/functions/ensureInstance.html +++ b/functions/ensureInstance.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns InstanceType<C>

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureJsonArray.html b/functions/ensureJsonArray.html index 4472e3a0..774c5d84 100644 --- a/functions/ensureJsonArray.html +++ b/functions/ensureJsonArray.html @@ -2,4 +2,4 @@

    Parameters

    Returns JsonArray

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureJsonMap.html b/functions/ensureJsonMap.html index 01ff3572..3f460ede 100644 --- a/functions/ensureJsonMap.html +++ b/functions/ensureJsonMap.html @@ -2,4 +2,4 @@

    Parameters

    Returns JsonMap

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureNumber.html b/functions/ensureNumber.html index 47feb02a..aa65840f 100644 --- a/functions/ensureNumber.html +++ b/functions/ensureNumber.html @@ -2,4 +2,4 @@

    Parameters

    Returns number

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureObject.html b/functions/ensureObject.html index 12ab4785..17d3cd6c 100644 --- a/functions/ensureObject.html +++ b/functions/ensureObject.html @@ -2,4 +2,4 @@

    Type Parameters

    Parameters

    Returns T

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensurePlainObject.html b/functions/ensurePlainObject.html index 5b2f71ff..64684507 100644 --- a/functions/ensurePlainObject.html +++ b/functions/ensurePlainObject.html @@ -3,4 +3,4 @@

    Type Parameters

    Parameters

    Returns T

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/ensureString.html b/functions/ensureString.html index eb941ae4..63d8a99d 100644 --- a/functions/ensureString.html +++ b/functions/ensureString.html @@ -2,4 +2,4 @@

    Parameters

    Returns string

    Throws

    UnexpectedValueTypeError If the value was undefined.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/entriesOf.html b/functions/entriesOf.html index aac2cea5..2b3c2d7e 100644 --- a/functions/entriesOf.html +++ b/functions/entriesOf.html @@ -11,4 +11,4 @@
    interface Point { x: number; y: number; }
    const point: Point = { x: 1, y: 2 };
    // type of entries -> ['x' | 'y', number][]
    const entries = entriesOf(point);
    for (const entry of entries) {
    console.log(entry[0], entry[1]);
    }
    // x 1
    // y 2

    Type Parameters

    Parameters

    Returns [K, T[K]][]

    \ No newline at end of file +

    Returns [K, T[K]][]

    \ No newline at end of file diff --git a/functions/get.html b/functions/get.html index 6cc80b6a..1bf84e49 100644 --- a/functions/get.html +++ b/functions/get.html @@ -4,4 +4,4 @@

    Parameters

    Returns unknown

    \ No newline at end of file +

    Returns unknown

    \ No newline at end of file diff --git a/functions/getAnyJson.html b/functions/getAnyJson.html index a3b9e3b2..c372489b 100644 --- a/functions/getAnyJson.html +++ b/functions/getAnyJson.html @@ -5,11 +5,11 @@

    Parameters

    Returns Optional<AnyJson>

  • Given a deep-search query path, returns an object property or array value of a JsonCollection as an +

  • Returns Optional<AnyJson>

  • Given a deep-search query path, returns an object property or array value of a JsonCollection as an AnyJson, or the given default if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [{ a: 'b' }] } };
    const value = getAnyJson(obj, 'foo.bar[1]', { c: 'd' });
    // type of value -> AnyJson; value -> { c: 'd' }

    Parameters

    • from: Optional<AnyJson>

      The JSON value to query.

    • path: string

      The query path.

    • defaultValue: AnyJson

      The default to return if the query result was not defined.

      -

    Returns AnyJson

  • \ No newline at end of file +

    Returns AnyJson

    \ No newline at end of file diff --git a/functions/getArray.html b/functions/getArray.html index 960693d3..83c0dd79 100644 --- a/functions/getArray.html +++ b/functions/getArray.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<AnyArray>

  • Given a deep-search query path, returns an object property or array value of an object or array as an +

  • Returns Nullable<AnyArray>

  • Given a deep-search query path, returns an object property or array value of an object or array as an AnyArray, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [1, 2, 3] } };
    const value = getArray(obj, 'foo.baz', [4, 5, 6]);
    // type of value -> AnyArray; value -> [4, 5, 6]

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: AnyArray<unknown>

      The default to return if the query result was not defined.

      -

    Returns AnyArray

  • \ No newline at end of file +

    Returns AnyArray

    \ No newline at end of file diff --git a/functions/getBoolean.html b/functions/getBoolean.html index a293eba8..3d4c868e 100644 --- a/functions/getBoolean.html +++ b/functions/getBoolean.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<boolean>

  • Given a deep-search query path, returns an object property or array value of an object or array as a boolean, or +

  • Returns Nullable<boolean>

  • Given a deep-search query path, returns an object property or array value of an object or array as a boolean, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [true] } };
    const value = getBoolean(obj, 'foo.bar[1]', false);
    // type of value -> boolean; value -> false

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: boolean

      The default to return if the query result was not defined.

      -

    Returns boolean

  • \ No newline at end of file +

    Returns boolean

    \ No newline at end of file diff --git a/functions/getDictionary.html b/functions/getDictionary.html index 62705636..43642e66 100644 --- a/functions/getDictionary.html +++ b/functions/getDictionary.html @@ -4,11 +4,11 @@

    Type Parameters

    Parameters

    Returns Nullable<Dictionary<T>>

  • Given a deep-search query path, returns an object property or array value of an object or array as an Dictionary<T>, or +

  • Returns Nullable<Dictionary<T>>

  • Given a deep-search query path, returns an object property or array value of an object or array as an Dictionary<T>, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [{ name: 'baz' }] } };
    const value = getDictionary<string>(obj, 'foo.bar[1]', { name: 'buzz' });
    // type of value -> Dictionary<string>; value -> { name: 'buzz' }

    Type Parameters

    • T = unknown

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: Dictionary<T>

      The default to return if the query result was not defined.

      -

    Returns Dictionary<T>

  • \ No newline at end of file +

    Returns Dictionary<T>

    \ No newline at end of file diff --git a/functions/getFunction.html b/functions/getFunction.html index a53a5ef4..9168473d 100644 --- a/functions/getFunction.html +++ b/functions/getFunction.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<AnyFunction>

  • Given a deep-search query path, returns an object property or array value of an object or array as an +

  • Returns Nullable<AnyFunction>

  • Given a deep-search query path, returns an object property or array value of an object or array as an AnyFunction, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [(arg: string) => `Hi, ${arg}`] } };
    const value = getFunction(obj, 'foo.bar[1]', (arg: string) => `Bye, ${arg}`);
    // type of value -> AnyArray; value -> (arg: string) => `Bye, ${arg}`)

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: AnyFunction<unknown>

      The default to return if the query result was not defined.

      -

    Returns AnyFunction

  • \ No newline at end of file +

    Returns AnyFunction

    \ No newline at end of file diff --git a/functions/getInstance.html b/functions/getInstance.html index 14e3d955..c6d04a14 100644 --- a/functions/getInstance.html +++ b/functions/getInstance.html @@ -4,11 +4,11 @@

    Type Parameters

    Parameters

    Returns Nullable<InstanceType<C>>

  • Given a deep-search query path, returns an object property or array value of an object or array as an instance of +

  • ctor: C
  • Returns Nullable<InstanceType<C>>

  • Given a deep-search query path, returns an object property or array value of an object or array as an instance of class type C, or undefined if a value was not found or was not type-compatible.

    class Example { ... }
    const obj = { foo: { bar: [new Example()] } };
    const value = getInstance(obj, 'foo.bar[0]', Example);
    // type of value -> Example; value -> new Example()

    Type Parameters

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • ctor: C
    • defaultValue: InstanceType<C>

      The default to return if the query result was not defined.

      -

    Returns InstanceType<C>

  • \ No newline at end of file +

    Returns InstanceType<C>

    \ No newline at end of file diff --git a/functions/getJsonArray.html b/functions/getJsonArray.html index c2096f76..43d0da9a 100644 --- a/functions/getJsonArray.html +++ b/functions/getJsonArray.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<JsonArray>

  • Given a deep-search query path, returns an object property or array value from an AnyJson as a +

  • Returns Nullable<JsonArray>

  • Given a deep-search query path, returns an object property or array value from an AnyJson as a JsonArray, or the given default if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [1, 2, 3] } };
    const value = getJsonArray(obj, 'foo.baz', [4, 5, 6]);
    // type of value -> JsonArray; value -> [4, 5, 6]

    Parameters

    • from: Optional<AnyJson>

      The JSON value to query.

    • path: string

      The query path.

    • defaultValue: JsonArray

      The default to return if the query result was not defined.

      -

    Returns JsonArray

  • \ No newline at end of file +

    Returns JsonArray

    \ No newline at end of file diff --git a/functions/getJsonMap.html b/functions/getJsonMap.html index 9df7e94a..51eb2e45 100644 --- a/functions/getJsonMap.html +++ b/functions/getJsonMap.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<JsonMap>

  • Given a deep-search query path, returns an object property or array value from an AnyJson as a +

  • Returns Nullable<JsonMap>

  • Given a deep-search query path, returns an object property or array value from an AnyJson as a JsonMap, or the given default if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [{ a: 'b' }] } };
    const value = getJsonMap(obj, 'foo.bar[1]', { c: 'd' });
    // type of value -> JsonMap; value -> { c: 'd' }

    Parameters

    • from: Optional<AnyJson>

      The JSON value to query.

    • path: string

      The query path.

    • defaultValue: JsonMap

      The default to return if the query result was not defined.

      -

    Returns JsonMap

  • \ No newline at end of file +

    Returns JsonMap

    \ No newline at end of file diff --git a/functions/getNumber.html b/functions/getNumber.html index cedf4ae0..6c862b5a 100644 --- a/functions/getNumber.html +++ b/functions/getNumber.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<number>

  • Given a deep-search query path, returns an object property or array value of an object or array as a number, or +

  • Returns Nullable<number>

  • Given a deep-search query path, returns an object property or array value of an object or array as a number, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [1] } };
    const value = getNumber(obj, 'foo.bar[1]', 2);
    // type of value -> number; value -> 2

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: number

      The default to return if the query result was not defined.

      -

    Returns number

  • \ No newline at end of file +

    Returns number

    \ No newline at end of file diff --git a/functions/getObject.html b/functions/getObject.html index c06acd81..008d53af 100644 --- a/functions/getObject.html +++ b/functions/getObject.html @@ -4,11 +4,11 @@

    Type Parameters

    Parameters

    Returns Nullable<T>

  • Given a deep-search query path, returns an object property or array value of an object or array as an object, or +

  • Returns Nullable<T>

  • Given a deep-search query path, returns an object property or array value of an object or array as an object, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: [{ name: 'baz' }] } };
    const value = getObject(obj, 'foo.bar[1]', { name: 'buzz' });
    // type of value -> object; value -> { name: 'buzz' }

    Type Parameters

    • T extends object = object

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: T

      The default to return if the query result was not defined.

      -

    Returns T

  • \ No newline at end of file +

    Returns T

    \ No newline at end of file diff --git a/functions/getPlainObject.html b/functions/getPlainObject.html index 47b80736..b70d4d2a 100644 --- a/functions/getPlainObject.html +++ b/functions/getPlainObject.html @@ -5,7 +5,7 @@

    Type Parameters

    Parameters

    Returns Nullable<T>

  • Given a deep-search query path, returns an object property or array value of an object or array as an object, or +

  • Returns Nullable<T>

  • Given a deep-search query path, returns an object property or array value of an object or array as an object, or undefined if a value was not found or was not type-compatible. This differs from getObject by way of testing for the property value type compatibility using isPlainObject instead of isObject.

    const obj = { foo: { bar: [{ name: 'baz' }] } };
    const value = getPlainObject(obj, 'foo.bar[1]', { name: 'buzz' });
    // type of value -> object; value -> { name: 'buzz' } @@ -13,4 +13,4 @@

    Type Parameters

    • T extends object = object

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: T

      The default to return if the query result was not defined.

      -

    Returns T

  • \ No newline at end of file +

    Returns T

    \ No newline at end of file diff --git a/functions/getString.html b/functions/getString.html index 62747788..ff8451f6 100644 --- a/functions/getString.html +++ b/functions/getString.html @@ -4,11 +4,11 @@

    Parameters

    Returns Nullable<string>

  • Given a deep-search query path, returns an object property or array value of an object or array as a string, or +

  • Returns Nullable<string>

  • Given a deep-search query path, returns an object property or array value of an object or array as a string, or undefined if a value was not found or was not type-compatible.

    const obj = { foo: { bar: ['baz'] } };
    const value = getString(obj, 'foo.bar[1]', 'default');
    // type of value -> string; value -> 'default'

    Parameters

    • from: unknown

      Any value to query.

    • path: string

      The query path.

    • defaultValue: string

      The default to return if the query result was not defined.

      -

    Returns string

  • \ No newline at end of file +

    Returns string

    \ No newline at end of file diff --git a/functions/has.html b/functions/has.html index a8389574..7240863e 100644 --- a/functions/has.html +++ b/functions/has.html @@ -6,4 +6,4 @@

    Type Parameters

    Parameters

    Returns value is T & object & View<K, unknown>

    \ No newline at end of file +

    Returns value is T & object & View<K, unknown>

    \ No newline at end of file diff --git a/functions/hasAnyJson.html b/functions/hasAnyJson.html index 25402a59..e6a72339 100644 --- a/functions/hasAnyJson.html +++ b/functions/hasAnyJson.html @@ -6,4 +6,4 @@
    // type of obj -> unknown
    if (hasAnyJson(obj, 'body')) {
    // type of obj -> { body: AnyJson }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, AnyJson>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, AnyJson>

    \ No newline at end of file diff --git a/functions/hasArray.html b/functions/hasArray.html index a6ee37a5..617ab1f8 100644 --- a/functions/hasArray.html +++ b/functions/hasArray.html @@ -4,4 +4,4 @@
    // type of obj -> unknown
    if (hasNumber(obj, 'offset')) {
    // type of obj -> { offset: number }
    if (hasNumber(obj, 'page') && hasArray(obj, 'items')) {
    // type of obj -> { offset: number } & { page: number } & { items: AnyArray }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, AnyArray<unknown>>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, AnyArray<unknown>>

    \ No newline at end of file diff --git a/functions/hasBoolean.html b/functions/hasBoolean.html index 6c4be103..fab136ba 100644 --- a/functions/hasBoolean.html +++ b/functions/hasBoolean.html @@ -4,4 +4,4 @@
    // type of obj -> unknown
    if (hasBoolean(obj, 'enabled')) {
    // type of obj -> { enabled: boolean }
    if (hasBoolean(obj, 'hidden')) {
    // type of obj -> { enabled: boolean } & { hidden: boolean }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, boolean>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, boolean>

    \ No newline at end of file diff --git a/functions/hasDictionary.html b/functions/hasDictionary.html index 17cacd64..df1a271f 100644 --- a/functions/hasDictionary.html +++ b/functions/hasDictionary.html @@ -5,4 +5,4 @@
    // type of obj -> unknown
    if (hasNumber(obj, 'status')) {
    // type of obj -> { status: number }
    if (hasDictionary(obj, 'data')) {
    // type of obj -> { status: number } & { data: Dictionary }
    } else if (hasString('error')) {
    // type of obj -> { status: number } & { error: string }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, Dictionary<V>>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, Dictionary<V>>

    \ No newline at end of file diff --git a/functions/hasFunction.html b/functions/hasFunction.html index c12becc0..f886ed7f 100644 --- a/functions/hasFunction.html +++ b/functions/hasFunction.html @@ -5,4 +5,4 @@
    // type of obj -> unknown
    if (hasFunction(obj, 'callback')) {
    // type of obj -> { callback: AnyFunction }
    obj.callback(response);
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, AnyFunction<unknown>>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, AnyFunction<unknown>>

    \ No newline at end of file diff --git a/functions/hasInstance.html b/functions/hasInstance.html index 1f80546e..e6ea6599 100644 --- a/functions/hasInstance.html +++ b/functions/hasInstance.html @@ -5,4 +5,4 @@
    class ServerResponse { ... }
    // type of obj -> unknown
    if (hasNumber(obj, 'status')) {
    // type of obj -> { status: number }
    if (hasInstance(obj, 'data', ServerResponse)) {
    // type of obj -> { status: number } & { data: ServerResponse }
    } else if (hasString('error')) {
    // type of obj -> { status: number } & { error: string }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & View<K, InstanceType<C>>

    \ No newline at end of file +
  • key: K
  • ctor: C
  • Returns value is T & View<K, InstanceType<C>>

    \ No newline at end of file diff --git a/functions/hasJsonArray.html b/functions/hasJsonArray.html index e346b2b2..f345a017 100644 --- a/functions/hasJsonArray.html +++ b/functions/hasJsonArray.html @@ -5,4 +5,4 @@
    // type of obj -> unknown
    if (hasJsonArray(obj, 'body')) {
    // type of obj -> { body: JsonArray }
    }

    Type Parameters

    Parameters

    Returns value is T & JsonMap & View<K, JsonArray>

    \ No newline at end of file +
  • key: K
  • Returns value is T & JsonMap & View<K, JsonArray>

    \ No newline at end of file diff --git a/functions/hasJsonMap.html b/functions/hasJsonMap.html index 387af09f..1af0906f 100644 --- a/functions/hasJsonMap.html +++ b/functions/hasJsonMap.html @@ -5,4 +5,4 @@
    // type of obj -> unknown
    if (hasJsonMap(obj, 'body')) {
    // type of obj -> { body: JsonMap }
    }

    Type Parameters

    Parameters

    Returns value is T & JsonMap & View<K, JsonMap>

    \ No newline at end of file +
  • key: K
  • Returns value is T & JsonMap & View<K, JsonMap>

    \ No newline at end of file diff --git a/functions/hasNumber.html b/functions/hasNumber.html index 4b4825a6..df7bdbbe 100644 --- a/functions/hasNumber.html +++ b/functions/hasNumber.html @@ -4,4 +4,4 @@
    // type of obj -> unknown
    if (hasNumber(obj, 'offset')) {
    // type of obj -> { offset: number }
    if (hasNumber(obj, 'page') && hasArray(obj, 'items')) {
    // type of obj -> { offset: number } & { page: number } & { items: unknown[] }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, number>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, number>

    \ No newline at end of file diff --git a/functions/hasObject.html b/functions/hasObject.html index 40b3c0fe..45a4727e 100644 --- a/functions/hasObject.html +++ b/functions/hasObject.html @@ -4,4 +4,4 @@
    // type of obj -> unknown
    if (hasNumber(obj, 'status')) {
    // type of obj -> { status: number }
    if (hasObject(obj, 'data')) {
    // type of obj -> { status: number } & { data: object }
    } else if (hasString('error')) {
    // type of obj -> { status: number } & { error: string }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, V>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, V>

    \ No newline at end of file diff --git a/functions/hasPlainObject.html b/functions/hasPlainObject.html index 43c42d92..de052e0f 100644 --- a/functions/hasPlainObject.html +++ b/functions/hasPlainObject.html @@ -5,4 +5,4 @@
    // type of obj -> unknown
    if (hasNumber(obj, 'status')) {
    // type of obj -> { status: number }
    if (hasPlainObject(obj, 'data')) {
    // type of obj -> { status: number } & { data: object }
    } else if (hasString('error')) {
    // type of obj -> { status: number } & { error: string }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, V>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, V>

    \ No newline at end of file diff --git a/functions/hasString.html b/functions/hasString.html index d99f29b7..3215c51f 100644 --- a/functions/hasString.html +++ b/functions/hasString.html @@ -4,4 +4,4 @@
    // type of obj -> unknown
    if (hasString(obj, 'name')) {
    // type of obj -> { name: string }
    if (hasString(obj, 'message')) {
    // type of obj -> { name: string } & { message: string }
    }
    }

    Type Parameters

    Parameters

    Returns value is T & object & View<K, string>

    \ No newline at end of file +
  • key: K
  • Returns value is T & object & View<K, string>

    \ No newline at end of file diff --git a/functions/isAnyJson.html b/functions/isAnyJson.html index d28437a4..1c0028e3 100644 --- a/functions/isAnyJson.html +++ b/functions/isAnyJson.html @@ -1,4 +1,4 @@ isAnyJson | @salesforce/ts-types
    • Tests whether unknown value is a valid JSON type. Note that objects and arrays are only checked using a shallow test. To be sure that a given value is JSON-compatible at runtime, see toAnyJson.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns value is AnyJson

    \ No newline at end of file +

    Returns value is AnyJson

    \ No newline at end of file diff --git a/functions/isArray.html b/functions/isArray.html index d011fce5..6fb43f1e 100644 --- a/functions/isArray.html +++ b/functions/isArray.html @@ -7,4 +7,4 @@ shape T. Use of the functions in the has co-library are useful for performing such full or partial proofs.

    Type Parameters

    Parameters

    Returns value is T[]

    \ No newline at end of file +

    Returns value is T[]

    \ No newline at end of file diff --git a/functions/isArrayLike.html b/functions/isArrayLike.html index 7437a55a..289ce427 100644 --- a/functions/isArrayLike.html +++ b/functions/isArrayLike.html @@ -7,4 +7,4 @@ shape T. Use of the functions in the has co-library are useful for performing such full or partial proofs.

    Type Parameters

    Parameters

    Returns value is ArrayLike<T>

    \ No newline at end of file +

    Returns value is ArrayLike<T>

    \ No newline at end of file diff --git a/functions/isBoolean.html b/functions/isBoolean.html index 1ce03637..3b26b38b 100644 --- a/functions/isBoolean.html +++ b/functions/isBoolean.html @@ -1,3 +1,3 @@ isBoolean | @salesforce/ts-types
    • Tests whether an unknown value is a boolean.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns value is boolean

    \ No newline at end of file +

    Returns value is boolean

    \ No newline at end of file diff --git a/functions/isClassAssignableTo.html b/functions/isClassAssignableTo.html index 55275ede..061d45ad 100644 --- a/functions/isClassAssignableTo.html +++ b/functions/isClassAssignableTo.html @@ -2,4 +2,4 @@ constructor.

    Type Parameters

    Parameters

    Returns value is C

    \ No newline at end of file +

    Returns value is C

    \ No newline at end of file diff --git a/functions/isDictionary.html b/functions/isDictionary.html index 5d6eea06..169642e2 100644 --- a/functions/isDictionary.html +++ b/functions/isDictionary.html @@ -9,4 +9,4 @@ shape T. Use of the functions in the has co-library are useful for performing such full or partial proofs.

    Type Parameters

    Parameters

    Returns value is Dictionary<T>

    \ No newline at end of file +

    Returns value is Dictionary<T>

    \ No newline at end of file diff --git a/functions/isFunction.html b/functions/isFunction.html index db6f9a7b..d330a2d5 100644 --- a/functions/isFunction.html +++ b/functions/isFunction.html @@ -1,3 +1,3 @@ isFunction | @salesforce/ts-types
    • Tests whether an unknown value is a function.

      Type Parameters

      Parameters

      • value: unknown

        The value to test.

        -

      Returns value is T

    \ No newline at end of file +

    Returns value is T

    \ No newline at end of file diff --git a/functions/isInstance.html b/functions/isInstance.html index 062ff11d..e5c78805 100644 --- a/functions/isInstance.html +++ b/functions/isInstance.html @@ -1,3 +1,3 @@ isInstance | @salesforce/ts-types
    • Tests whether an unknown value is a function.

      Type Parameters

      Parameters

      • value: unknown

        The value to test.

        -
      • ctor: C

      Returns value is InstanceType<C>

    \ No newline at end of file +
  • ctor: C
  • Returns value is InstanceType<C>

    \ No newline at end of file diff --git a/functions/isJsonArray.html b/functions/isJsonArray.html index bf90b726..bbb9c5ff 100644 --- a/functions/isJsonArray.html +++ b/functions/isJsonArray.html @@ -1,3 +1,3 @@ isJsonArray | @salesforce/ts-types
    \ No newline at end of file +

    Returns value is JsonArray

    \ No newline at end of file diff --git a/functions/isJsonMap.html b/functions/isJsonMap.html index de40de98..3329f8dc 100644 --- a/functions/isJsonMap.html +++ b/functions/isJsonMap.html @@ -1,3 +1,3 @@ isJsonMap | @salesforce/ts-types
    \ No newline at end of file +

    Returns value is JsonMap

    \ No newline at end of file diff --git a/functions/isKeyOf.html b/functions/isKeyOf.html index 2ebe4841..3fa7fa10 100644 --- a/functions/isKeyOf.html +++ b/functions/isKeyOf.html @@ -1,4 +1,4 @@ isKeyOf | @salesforce/ts-types
    • Tests whether or not a key string is a key of the given object type T.

      Type Parameters

      • T extends object
      • K extends string

      Parameters

      • obj: T

        The target object to check the key in.

      • key: string

        The string to test as a key of the target object.

        -

      Returns key is K

    \ No newline at end of file +

    Returns key is K

    \ No newline at end of file diff --git a/functions/isNumber.html b/functions/isNumber.html index bc162f69..b91f8018 100644 --- a/functions/isNumber.html +++ b/functions/isNumber.html @@ -1,3 +1,3 @@ isNumber | @salesforce/ts-types
    • Tests whether an unknown value is a number.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns value is number

    \ No newline at end of file +

    Returns value is number

    \ No newline at end of file diff --git a/functions/isObject.html b/functions/isObject.html index 53aed85e..f5528352 100644 --- a/functions/isObject.html +++ b/functions/isObject.html @@ -10,4 +10,4 @@ shape T. Use of the functions in the has co-library are useful for performing such full or partial proofs.

    Type Parameters

    Parameters

    Returns value is T

    \ No newline at end of file +

    Returns value is T

    \ No newline at end of file diff --git a/functions/isPlainObject.html b/functions/isPlainObject.html index 5179abf2..5c645a31 100644 --- a/functions/isPlainObject.html +++ b/functions/isPlainObject.html @@ -8,4 +8,4 @@ shape T. Use of the functions in the has co-library are useful for performing such full or partial proofs.

    Type Parameters

    Parameters

    Returns value is T

    \ No newline at end of file +

    Returns value is T

    \ No newline at end of file diff --git a/functions/isString.html b/functions/isString.html index 7efbeb1d..ceb14b5c 100644 --- a/functions/isString.html +++ b/functions/isString.html @@ -1,3 +1,3 @@ isString | @salesforce/ts-types
    • Tests whether an unknown value is a string.

      Parameters

      • value: unknown

        The value to test.

        -

      Returns value is string

    \ No newline at end of file +

    Returns value is string

    \ No newline at end of file diff --git a/functions/keysOf.html b/functions/keysOf.html index f60b463c..d062ed81 100644 --- a/functions/keysOf.html +++ b/functions/keysOf.html @@ -11,4 +11,4 @@
    interface Point { x: number; y: number; }
    const point: Point = { x: 1, y: 2 };
    const keys = keysOf(point);
    // type of keys -> ('a' | 'b')[]
    for (const key of keys) {
    console.log(key, point[key]);
    }
    // x 1
    // y 2

    Type Parameters

    Parameters

    Returns K[]

    \ No newline at end of file +

    Returns K[]

    \ No newline at end of file diff --git a/functions/toAnyJson.html b/functions/toAnyJson.html index 9183ee5c..93ef7f5f 100644 --- a/functions/toAnyJson.html +++ b/functions/toAnyJson.html @@ -7,7 +7,7 @@ and only needs type coercion.

    Type Parameters

    Parameters

    Returns Optional<AnyJson>

    Throws

    JsonCloneError If the value values contain circular references.

    -
  • Narrows an object of type T to an AnyJson following a deep, brute-force conversion of the object's data to +

  • Narrows an object of type T to an AnyJson following a deep, brute-force conversion of the object's data to only consist of JSON-compatible values by performing a basic JSON clone on the object. This is preferable to using the weaker coerceAnyJson(unknown) to type-narrow an arbitrary value to an AnyJson when the value's source is unknown, but it comes with the increased overhead of performing the deep JSON clone to ensure runtime type @@ -17,4 +17,4 @@

    Type Parameters

    • T

    Parameters

    • value: Nullable<T>

      The value to convert.

    • defaultValue: AnyJson

      The default to return if value was not defined.

    Returns AnyJson

    Throws

    JsonCloneError If the value values contain circular references.

    -
  • \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/toJsonArray.html b/functions/toJsonArray.html index 2b00f23d..af74fc78 100644 --- a/functions/toJsonArray.html +++ b/functions/toJsonArray.html @@ -7,7 +7,7 @@ object can be guaranteed to be JSON-compatible and only needs type coercion.

    Type Parameters

    Parameters

    Returns JsonArray

    Throws

    JsonCloneError If the array values contain circular references.

    -
  • Narrows an array of type T to a JsonArray following a deep, brute-force conversion of the array's data to +

  • Narrows an array of type T to a JsonArray following a deep, brute-force conversion of the array's data to only consist of JSON-compatible values by performing a basic JSON clone on the array. This is preferable to using the weaker coerceJsonArray(array) to type-narrow an arbitrary array to a JsonArray when the array's source is unknown, but it comes with the increased overhead of performing the deep JSON clone to ensure runtime type @@ -16,7 +16,7 @@ object can be guaranteed to be JSON-compatible and only needs type coercion.

    Type Parameters

    • T

    Parameters

    Returns Optional<JsonArray>

    Throws

    JsonCloneError If the array values contain circular references.

    -
  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to +

  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to only consist of JSON-compatible values by performing a basic JSON clone on the object. This is preferable to using the weaker coerceJsonMap(object) to type-narrow an arbitrary array to a JsonMap when the object's source is unknown, but it comes with the increased overhead of performing the deep JSON clone to ensure runtime type @@ -26,4 +26,4 @@

    Type Parameters

    • T

    Parameters

    • value: Optional<T[]>

      The array to convert.

    • defaultValue: JsonArray

      The default to return if the value was undefined or of the incorrect type.

    Returns JsonArray

    Throws

    JsonCloneError If the array values contain circular references.

    -
  • \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/toJsonMap.html b/functions/toJsonMap.html index 535608b7..53e81133 100644 --- a/functions/toJsonMap.html +++ b/functions/toJsonMap.html @@ -7,7 +7,7 @@ and only needs type coercion.

    Type Parameters

    Parameters

    Returns JsonMap

    Throws

    JsonCloneError If the object values contain circular references.

    -
  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to +

  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to only consist of JSON-compatible values by performing a basic JSON clone on the object. This is preferable to using the weaker coerceJsonMap(object) to type-narrow an arbitrary object to a JsonMap when the object's source is unknown, but it comes with the increased overhead of performing the deep JSON clone to ensure runtime type @@ -16,7 +16,7 @@ and only needs type coercion.

    Type Parameters

    • T extends object

    Parameters

    Returns Optional<JsonMap>

    Throws

    JsonCloneError If the object values contain circular references.

    -
  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to +

  • Narrows an object of type T to a JsonMap following a deep, brute-force conversion of the object's data to only consist of JSON-compatible values by performing a basic JSON clone on the object. This is preferable to using the weaker coerceJsonMap(object) to type-narrow an arbitrary object to a JsonMap when the object's source is unknown, but it comes with the increased overhead of performing the deep JSON clone to ensure runtime type @@ -26,4 +26,4 @@

    Type Parameters

    • T extends object

    Parameters

    • value: Nullable<T>

      The object to convert.

    • defaultValue: JsonMap

      The default to return if value was not defined.

    Returns JsonMap

    Throws

    JsonCloneError If the object values contain circular references.

    -
  • \ No newline at end of file +
    \ No newline at end of file diff --git a/functions/valuesOf.html b/functions/valuesOf.html index c9225f65..8cee0bb3 100644 --- a/functions/valuesOf.html +++ b/functions/valuesOf.html @@ -11,4 +11,4 @@
    interface Point { x: number; y: number; }
    const point: Point = { x: 1, y: 2 };
    const values = valuesOf(point);
    // type of values -> number[]
    for (const value of values) {
    console.log(value);
    }
    // 1
    // 2

    Type Parameters

    Parameters

    Returns T[K][]

    \ No newline at end of file +

    Returns T[K][]

    \ No newline at end of file diff --git a/interfaces/AnyArray.html b/interfaces/AnyArray.html index 9c25db66..3c04e6d8 100644 --- a/interfaces/AnyArray.html +++ b/interfaces/AnyArray.html @@ -1,2 +1,2 @@ AnyArray | @salesforce/ts-types

    Interface AnyArray<T>

    An alias for an array of T elements, where T defaults to unknown.

    -
    interface AnyArray<T> {}

    Type Parameters

    • T = unknown

    Hierarchy

    • Array<T>
      • AnyArray
    \ No newline at end of file +
    interface AnyArray<T> {}

    Type Parameters

    Hierarchy

    \ No newline at end of file diff --git a/interfaces/AnyArrayLike.html b/interfaces/AnyArrayLike.html index 6c1028a4..d8fa7da2 100644 --- a/interfaces/AnyArrayLike.html +++ b/interfaces/AnyArrayLike.html @@ -1,3 +1,3 @@ AnyArrayLike | @salesforce/ts-types

    Interface AnyArrayLike<T>

    Any object with both a numeric index signature with values of type T and a numeric length property. T defaults to unknown if unspecified.

    -
    interface AnyArrayLike<T> {}

    Type Parameters

    • T = unknown

    Hierarchy

    • ArrayLike<T>
      • AnyArrayLike
    \ No newline at end of file +
    interface AnyArrayLike<T> {}

    Type Parameters

    Hierarchy

    \ No newline at end of file diff --git a/interfaces/Dictionary.html b/interfaces/Dictionary.html index d05c9050..69d04625 100644 --- a/interfaces/Dictionary.html +++ b/interfaces/Dictionary.html @@ -2,4 +2,4 @@ when not explicitly supplied. For convenient iteration of definitely assigned (i.e. non-nullable) entries, keys, and values, see the following functions: definiteEntriesOf, definiteKeysOf, and definiteValuesOf.

    -
    interface Dictionary<T> {
        [key: string]: Optional<T>;
    }

    Type Parameters

    Hierarchy (view full)

    Indexable

    [key: string]: Optional<T>
    \ No newline at end of file +
    interface Dictionary<T> {
        [key: string]: Optional<T>;
    }

    Type Parameters

    Hierarchy (view full)

    Indexable

    [key: string]: Optional<T>
    \ No newline at end of file diff --git a/interfaces/JsonArray.html b/interfaces/JsonArray.html index 37babc6d..1a9504cd 100644 --- a/interfaces/JsonArray.html +++ b/interfaces/JsonArray.html @@ -1,2 +1,2 @@ JsonArray | @salesforce/ts-types

    Any JSON-compatible array.

    -
    interface JsonArray {}

    Hierarchy

    \ No newline at end of file +
    interface JsonArray {}

    Hierarchy

    \ No newline at end of file diff --git a/interfaces/JsonMap.html b/interfaces/JsonMap.html index 5ba7b73b..f630edf7 100644 --- a/interfaces/JsonMap.html +++ b/interfaces/JsonMap.html @@ -1,2 +1,2 @@ JsonMap | @salesforce/ts-types

    Any JSON-compatible object.

    -
    interface JsonMap {}

    Hierarchy (view full)

    \ No newline at end of file +
    interface JsonMap {}

    Hierarchy (view full)

    \ No newline at end of file diff --git a/types/AnyConstructor.html b/types/AnyConstructor.html index 228bffb5..197747b9 100644 --- a/types/AnyConstructor.html +++ b/types/AnyConstructor.html @@ -1,2 +1,2 @@ AnyConstructor | @salesforce/ts-types

    Type alias AnyConstructor<T>

    AnyConstructor<T>: (new (...args) => T)

    A constructor for any type T. T defaults to object when not explicitly supplied.

    -

    Type Parameters

    • T = object

    Type declaration

      • new (...args): T
      • Parameters

        • Rest ...args: any[]

        Returns T

    \ No newline at end of file +

    Type Parameters

    Type declaration

    \ No newline at end of file diff --git a/types/AnyFunction.html b/types/AnyFunction.html index 1fd0d2cf..24b4b89b 100644 --- a/types/AnyFunction.html +++ b/types/AnyFunction.html @@ -1,2 +1,2 @@ AnyFunction | @salesforce/ts-types

    Type alias AnyFunction<T>

    AnyFunction<T>: ((...args) => T)

    Any function returning type T. T defaults to unknown when not explicitly supplied.

    -

    Type Parameters

    • T = unknown

    Type declaration

      • (...args): T
      • Parameters

        • Rest ...args: any[]

        Returns T

    \ No newline at end of file +

    Type Parameters

    Type declaration

    \ No newline at end of file diff --git a/types/AnyJson.html b/types/AnyJson.html index 7845fa97..6fc07804 100644 --- a/types/AnyJson.html +++ b/types/AnyJson.html @@ -1,2 +1,2 @@ AnyJson | @salesforce/ts-types

    Type alias AnyJson

    Any valid JSON value.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/types/JsonCollection.html b/types/JsonCollection.html index 8fd8e1d1..819faafa 100644 --- a/types/JsonCollection.html +++ b/types/JsonCollection.html @@ -1,2 +1,2 @@ JsonCollection | @salesforce/ts-types

    Type alias JsonCollection

    JsonCollection: JsonMap | JsonArray

    Any valid JSON collection value.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/types/JsonPrimitive.html b/types/JsonPrimitive.html index 99307405..bdf17a23 100644 --- a/types/JsonPrimitive.html +++ b/types/JsonPrimitive.html @@ -1,2 +1,2 @@ JsonPrimitive | @salesforce/ts-types

    Type alias JsonPrimitive

    JsonPrimitive: null | boolean | number | string

    Any valid JSON primitive value.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/types/KeyOf.html b/types/KeyOf.html index 8fa6fda8..d21d14f3 100644 --- a/types/KeyOf.html +++ b/types/KeyOf.html @@ -1,2 +1,2 @@ KeyOf | @salesforce/ts-types

    Type alias KeyOf<T>

    KeyOf<T>: Extract<keyof T, string>

    An alias for the commonly needed Extract<keyof T, string>.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/KeyValue.html b/types/KeyValue.html index f3a603ce..d2213509 100644 --- a/types/KeyValue.html +++ b/types/KeyValue.html @@ -1,3 +1,3 @@ KeyValue | @salesforce/ts-types

    Type alias KeyValue<T>

    KeyValue<T>: [string, T]

    An alias for a tuple of type [string, T]' for a given generic type T. Tdefaults tounknown` if not otherwise defined.

    -

    Type Parameters

    • T = unknown
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Literals.html b/types/Literals.html index f94308f8..eceec20c 100644 --- a/types/Literals.html +++ b/types/Literals.html @@ -1,3 +1,3 @@ Literals | @salesforce/ts-types

    Type alias Literals<T>

    Literals<T>: Extract<{
            [K in keyof T]: string extends K
                ? never
                : number extends K
                    ? never
                    : K
        } extends {
            [_ in keyof T]: infer U
        }
        ? U
        : never, string>

    Extracts literally defined property names from a type T as a union of key name strings, minus any index signatures.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/LiteralsRecord.html b/types/LiteralsRecord.html index 3d3c72ed..8fa3fb5a 100644 --- a/types/LiteralsRecord.html +++ b/types/LiteralsRecord.html @@ -5,4 +5,4 @@ generated type to the enum keys and remaining as DRY as possible.

    enum QUERY_KEY { id, name, created, updated }
    // type of QUERY_KEY -> {
    // [x: number]: number;
    // readonly id: number;
    // readonly name: number;
    // readonly created: number;
    // readonly updated: number;
    // }
    interface QueryRecord extends LiteralsRecord<typeof QUERY_KEY, string> { }
    // type of QueryRecord -> {
    // readonly id: string;
    // readonly name: string;
    // readonly created: string;
    // readonly updated: string;
    // }
    // And for an interface with writable properties, use the following:
    interface QueryRecord extends ReadWrite<LiteralsRecord<typeof QUERY_KEY, string>> { }
    // type of QueryRecord -> {
    // id: string;
    // name: string;
    // created: string;
    // updated: string;
    // }
    -

    Type Parameters

    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Many.html b/types/Many.html index d14ae776..1ed201cb 100644 --- a/types/Many.html +++ b/types/Many.html @@ -1,2 +1,2 @@ Many | @salesforce/ts-types

    Type alias Many<T>

    Many<T>: T | T[]

    A union type for either the parameterized type T or an array of T.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/NonOptional.html b/types/NonOptional.html index 5276b18b..2a62c862 100644 --- a/types/NonOptional.html +++ b/types/NonOptional.html @@ -1,2 +1,2 @@ NonOptional | @salesforce/ts-types

    Type alias NonOptional<T>

    NonOptional<T>: T extends undefined
        ? never
        : T

    Subtracts undefined from any union type T. This is the opposite of Optional.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Nullable.html b/types/Nullable.html index 3ae45d1c..7d054e63 100644 --- a/types/Nullable.html +++ b/types/Nullable.html @@ -1,3 +1,3 @@ Nullable | @salesforce/ts-types

    Type alias Nullable<T>

    Nullable<T>: Optional<T | null>

    A union type for either the parameterized type T, null, or undefined -- the opposite of the NonNullable builtin conditional type.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Omit.html b/types/Omit.html index 774b9232..f1ca3b0a 100644 --- a/types/Omit.html +++ b/types/Omit.html @@ -1,2 +1,2 @@ Omit | @salesforce/ts-types

    Type alias Omit<T, K>

    Omit<T, K>: Pick<T, Exclude<keyof T, K>>

    Creates a new type that omits keys in union type K of a target type T.

    -

    Type Parameters

    • T
    • K extends keyof T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Optional.html b/types/Optional.html index 42e3ec19..73a54bb5 100644 --- a/types/Optional.html +++ b/types/Optional.html @@ -1,2 +1,2 @@ Optional | @salesforce/ts-types

    Type alias Optional<T>

    Optional<T>: T | undefined

    A union type for either the parameterized type T or undefined -- the opposite of NonOptional.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/Overwrite.html b/types/Overwrite.html index 044be6df..dcf306b5 100644 --- a/types/Overwrite.html +++ b/types/Overwrite.html @@ -4,4 +4,4 @@ change their type or to make them optional.

    type NameAndStringValue = { name: string, value: string }
    type NameAndOptionalNumericValue = Overwrite<NameAndValue, { value?: number }>
    // type of NameAndOptionalNumericValue -> { name: string } & { value?: number | undefined }
    -

    Type Parameters

    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/ReadWrite.html b/types/ReadWrite.html index fbcac0bc..d1144bfe 100644 --- a/types/ReadWrite.html +++ b/types/ReadWrite.html @@ -1,3 +1,3 @@ ReadWrite | @salesforce/ts-types

    Type alias ReadWrite<T>

    ReadWrite<T>: {
        -readonly [K in keyof T]: T[K]
    }

    Converts readonly properties of a type T to writable properties. This is the opposite of the Readonly<T> builtin mapped type.

    -

    Type Parameters

    • T
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/RequiredNonNullable.html b/types/RequiredNonNullable.html index 8116044a..a00f2369 100644 --- a/types/RequiredNonNullable.html +++ b/types/RequiredNonNullable.html @@ -2,4 +2,4 @@ properties, while also subtracting null from all possible property values.

    type Foo = { bar?: string | undefined | null };
    type RequiredNonNullableFoo = RequiredNonNullable<Foo>;
    // RequiredNonNullableFoo -> { bar: string };
    -

    Type Parameters

    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/RequiredNonOptional.html b/types/RequiredNonOptional.html index 0b32bd46..1b5afefe 100644 --- a/types/RequiredNonOptional.html +++ b/types/RequiredNonOptional.html @@ -4,4 +4,4 @@ subtracts undefined from value union types as well as the optional property declaration.

    type Foo = { bar?: string | undefined | null };
    type RequiredNonOptionalFoo = RequiredNonOptional<Foo>;
    // RequiredNonOptionalFoo -> { bar: string | null };
    -

    Type Parameters

    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file diff --git a/types/View.html b/types/View.html index 7a4d63eb..444b59c7 100644 --- a/types/View.html +++ b/types/View.html @@ -1,2 +1,2 @@ View | @salesforce/ts-types

    Type alias View<K, V>

    View<K, V>: {
        [_ in K]: V
    }

    A view over an object with constrainable properties.

    -

    Type Parameters

    • K extends string
    • V = unknown
    \ No newline at end of file +

    Type Parameters

    \ No newline at end of file