Skip to content

Commit

Permalink
Merge pull request #135 from seriousme/fix-index.d.ts-for-validateBundle
Browse files Browse the repository at this point in the history
fix index.d.ts for validateBundle
  • Loading branch information
seriousme authored Feb 17, 2024
2 parents 305c8a0 + 20667a6 commit a357570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Options:
- [`<instance>.version`](#version)
- [`<instance>.resolveRefs(options)`](#resolveRefs)
- [`<instance>.addSpecRef(subSpecification, uri)`](#addSpecRef)
- [`<instance>.validateBundle([specification,subspecification, ...])`](#validateBundle)
- [`Validator.supportedVersions`](#supportedVersions)

<a name="newValidator"></a>
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class Validator {
valid: boolean;
errors?: ErrorObject[] | string;
}>;
validateBundle(schema: (object | string)[]): Promise<{
valid: boolean;
errors?: ErrorObject[] | string;
}>;
addSpecRef(schema: object | string, uri: string): Promise<void>;
specification: object;
version: string;
Expand Down

0 comments on commit a357570

Please sign in to comment.