diff --git a/docs/solid-typeindex-support.typeindexhelper.getfromtypeindex.md b/docs/solid-typeindex-support.typeindexhelper.getfromtypeindex.md index 49bf98b..d1febdc 100644 --- a/docs/solid-typeindex-support.typeindexhelper.getfromtypeindex.md +++ b/docs/solid-typeindex-support.typeindexhelper.getfromtypeindex.md @@ -9,7 +9,7 @@ Retrieves all instances of the given RDF class from the user's typeIndexe. **Signature:** ```typescript -static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: true): Promise; +static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise; ``` ## Parameters @@ -19,7 +19,7 @@ static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: | webId | string | The user's WebID | | rdfClass | string | The RDF class to retrieve instances for | | fetch | any | Authenticated fetch function | -| isPrivate | true | Whether the typeIndexe is private or public | +| isPrivate | boolean | Whether the typeIndexe is private or public | **Returns:** diff --git a/etc/solid-typeindex-support.api.md b/etc/solid-typeindex-support.api.md index dbe740d..7b171f5 100644 --- a/etc/solid-typeindex-support.api.md +++ b/etc/solid-typeindex-support.api.md @@ -8,7 +8,7 @@ import { SolidDataset } from '@inrupt/solid-client'; // @public export class TypeIndexHelper { - static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: true): Promise; + static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise; static registerInTypeIndex(webId: string, typeRegistrationTitle: string, rdfClass: string, fetch: any, indexUrl: string, isPrivate: boolean): Promise; } diff --git a/src/TypeIndexHelper.ts b/src/TypeIndexHelper.ts index dbea458..995c225 100644 --- a/src/TypeIndexHelper.ts +++ b/src/TypeIndexHelper.ts @@ -133,7 +133,7 @@ export class TypeIndexHelper { * @param isPrivate - Whether the typeIndexe is private or public * @returns Promise resolving to an array of instance URLs */ - public static async getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: true): Promise { + public static async getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise { const typeIndex = await this.getTypeIndex(webId, fetch, isPrivate); const typeIndexDS = await getSolidDataset(typeIndex?.value, { fetch: fetch });