Skip to content

Commit

Permalink
used Record and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
diyaayay committed Jun 8, 2024
1 parent fcc242e commit 6286561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ These are available from the `@hyperjump/json-schema/experimental` export.
* **getDialectIds**
This function retrieves the identifiers of all loaded JSON Schema dialects.
* **getDialect**: (dialectId: string) => Record<string, string>;
This function retrieves all the keywords appropriate for a particular dialect.
* **Validation**: Keyword
A Keyword object that represents a "validate" operation. You would use this
Expand Down
2 changes: 1 addition & 1 deletion lib/experimental.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const loadDialect: (dialectId: string, dialect: { [vocabularyId: string]:
export const unloadDialect: (dialectId: string) => void;
export const hasDialect: (dialectId: string) => boolean;
export const getDialectIds: () => string[];
export const getDialect: (dialectId: string) => { [keyword: string]: string };
export const getDialect: (dialectId: string) => Record<string, string>;

export type Keyword<A> = {
id: string;
Expand Down

0 comments on commit 6286561

Please sign in to comment.