@inrupt/solid-client
    Preparing search index...

    Type Alias SetOfType<Type>

    SetOfType: <T extends Thing>(
        thing: T,
        property: Url | UrlString,
        value: Type,
    ) => T

    Create a new Thing with existing values replaced by the given value for the given Property.

    The original thing is not modified; this function returns a cloned Thing with updated values.

    Type Parameters

    • Type

    Type Declaration

      • <T extends Thing>(thing: T, property: Url | UrlString, value: Type): T
      • Type Parameters

        Parameters

        • thing: T

          Thing to set a value on.

        • property: Url | UrlString

          Property for which to set the given value.

        • value: Type

          Value to set on thing for the given property.

        Returns T

        A new Thing equal to the input Thing with existing values replaced by the given value for the given Property.