Skip to content

Commit 1aa2b7d

Browse files
authored
fix: update types for accessor for signal (#228)
1 parent 4386508 commit 1aa2b7d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"devDependencies": {
5757
"@types/json-schema": "^7.0.15",
5858
"@types/mocha": "^10.0.1",
59-
"@types/node": "^22.10.7",
59+
"@types/node": "^22.13.1",
6060
"@types/reservoir": "^0.1.0",
6161
"@types/sinon": "^17.0.3",
6262
"@typescript-eslint/eslint-plugin": "^5.47.1",

src/schema-accessor.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import { Schema as InternalSchema } from './schema-analyzer';
22
import { convertors } from './schema-convertors';
33
import { ExpandedJSONSchema, MongoDBJSONSchema, StandardJSONSchema } from './types';
44

5-
export interface SchemaAccessor {
6-
getStandardJsonSchema: () => Promise<StandardJSONSchema>;
7-
getMongoDBJsonSchema: () => Promise<MongoDBJSONSchema>;
8-
getExpandedJSONSchema: () => Promise<ExpandedJSONSchema>;
9-
getInternalSchema: () => Promise<InternalSchema>;
10-
}
11-
125
type Options = {
136
signal?: AbortSignal;
147
}
158

9+
export interface SchemaAccessor {
10+
getStandardJsonSchema: (options?: Options) => Promise<StandardJSONSchema>;
11+
getMongoDBJsonSchema: (options?: Options) => Promise<MongoDBJSONSchema>;
12+
getExpandedJSONSchema: (options?: Options) => Promise<ExpandedJSONSchema>;
13+
getInternalSchema: (options?: Options) => Promise<InternalSchema>;
14+
}
15+
1616
/**
1717
* Accessor for different schema formats.
1818
* Internal schema is provided at initialization,

0 commit comments

Comments
 (0)