@inrupt/solid-client / thing/add
Module: thing/add#
Type Aliases#
AddOfType#
Ƭ AddOfType<Type
>: <T>(thing
: T
, property
: Url
| UrlString
, value
: Type
) => T
Type parameters#
Name |
---|
|
Type declaration#
▸ <T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
Property on which to add the given value. |
|
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
Functions#
addBoolean#
▸ addBoolean<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addDate#
▸ addDate<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addDatetime#
▸ addDatetime<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addDecimal#
▸ addDecimal<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addInteger#
▸ addInteger<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addIri#
▸ addIri<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addStringEnglish#
▸ addStringEnglish<T
>(thing
, property
, value
): T
Create a new Thing with an English string added for a Property.
This preserves existing values for the given Property. To replace them, see setStringEnglish.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Since
1.13.0
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a localised string value to. |
|
|
Property for which to add the given string value. |
|
|
String to add to |
Returns#
T
A new Thing equal to the input Thing with the given value added for the given Property.
Defined in#
src/thing/add.ts:258
addStringNoLocale#
▸ addStringNoLocale<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addStringWithLocale#
▸ addStringWithLocale<T
>(thing
, property
, value
, locale
): T
Create a new Thing with a localised string added for a Property.
This preserves existing values for the given Property. To replace them, see setStringWithLocale.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a localised string value to. |
|
|
Property for which to add the given string value. |
|
|
String to add to |
|
|
Locale of the added string. |
Returns#
T
A new Thing equal to the input Thing with the given value added for the given Property.
Defined in#
src/thing/add.ts:279
addTime#
▸ addTime<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495
addUrl#
▸ addUrl<T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to add a value to. |
|
|
Property on which to add the given value. |
|
|
Value to add to |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/add.ts:495