Skip to content

Commit

Permalink
fix getFromTypeIndex arg: isPrivate
Browse files Browse the repository at this point in the history
  • Loading branch information
soltanireza65 committed Dec 19, 2023
1 parent 68f5337 commit a8a6caf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]>;
static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise<string[]>;
```

## Parameters
Expand All @@ -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:**

Expand Down
2 changes: 1 addition & 1 deletion etc/solid-typeindex-support.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]>;
static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise<string[]>;
static registerInTypeIndex(webId: string, typeRegistrationTitle: string, rdfClass: string, fetch: any, indexUrl: string, isPrivate: boolean): Promise<SolidDataset>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/TypeIndexHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]> {
public static async getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise<string[]> {
const typeIndex = await this.getTypeIndex(webId, fetch, isPrivate);

const typeIndexDS = await getSolidDataset(typeIndex?.value, { fetch: fetch });
Expand Down

0 comments on commit a8a6caf

Please sign in to comment.