@inrupt/solid-client / thing/remove
Module: thing/remove#
Type Aliases#
RemoveOfType#
Ƭ RemoveOfType<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 remove a value from.  | 
  | 
Property for which to remove the given value.  | 
|
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
Functions#
removeAll#
▸ removeAll<T>(thing, property): T
Create a new Thing with all values removed for the given Property.
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 remove values from.  | 
  | 
  | 
Property for which to remove all values from the Thing.  | 
Returns#
T
A new Thing equal to the input Thing with all values removed for the given Property.
Defined in#
src/thing/remove.ts:57
removeBoolean#
▸ removeBoolean<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeDate#
▸ removeDate<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeDatetime#
▸ removeDatetime<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeDecimal#
▸ removeDecimal<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeInteger#
▸ removeInteger<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeIri#
▸ removeIri<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeStringEnglish#
▸ removeStringEnglish<T>(thing, property, value): T
Create a new Thing with the given English string removed for the given Property.
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 remove a localised string value from.  | 
  | 
  | 
Property for which to remove the given localised string value.  | 
  | 
  | 
String to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:290
removeStringNoLocale#
▸ removeStringNoLocale<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeStringWithLocale#
▸ removeStringWithLocale<T>(thing, property, value, locale): T
Create a new Thing with the given localised string removed for the given Property.
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 remove a localised string value from.  | 
  | 
  | 
Property for which to remove the given localised string value.  | 
  | 
  | 
String to remove from   | 
  | 
  | 
Locale of the string to remove.  | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:309
removeTime#
▸ removeTime<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500
removeUrl#
▸ removeUrl<T>(thing, property, value): T
Type parameters#
Name  | 
Type  | 
|---|---|
  | 
extends   | 
Parameters#
Name  | 
Type  | 
Description  | 
|---|---|---|
  | 
  | 
Thing to remove a value from.  | 
  | 
  | 
Property for which to remove the given value.  | 
  | 
  | 
Value to remove from   | 
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
src/thing/remove.ts:500