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

    Function asUrl

    • Get the URL to a given [[Thing]].

      Parameters

      • thing: ThingLocal

        The [[Thing]] you want to obtain the URL from.

      • baseUrl: string

        If thing is not persisted yet, the base URL that should be used to construct this [[Thing]]'s URL.

      Returns string

    • Get the URL to a given [[Thing]].

      Type Parameters

      Parameters

      • thing: T & IsNotThingLocal<T>

        The [[Thing]] you want to obtain the URL from.

      Returns string

    • Get the URL to a given [[Thing]].

      Parameters

      • thing: Thing

        The [[Thing]] you want to obtain the URL from.

      • baseUrl: string

        If thing is not persisted yet, the base URL that should be used to construct this [[Thing]]'s URL.

      Returns string