Skip to content

Commit 33086d2

Browse files
committed
refactor: allow null for schemaComponentsMap and schemaWalker
1 parent 2c0e0b7 commit 33086d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jsonld-schema-resolver.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ export interface JsonLdContext {
1818

1919
export class JsonLdSchemaResolver {
2020
config: CodeGenConfig;
21-
schemaComponentsMap: SchemaComponentsMap;
22-
schemaWalker: SchemaWalker;
21+
schemaComponentsMap: SchemaComponentsMap | null;
22+
schemaWalker: SchemaWalker | null;
2323

2424
constructor(
2525
config: CodeGenConfig,
26-
schemaComponentsMap: SchemaComponentsMap,
27-
schemaWalker: SchemaWalker,
26+
schemaComponentsMap: SchemaComponentsMap | null,
27+
schemaWalker: SchemaWalker | null,
2828
) {
2929
this.config = config;
3030
this.schemaComponentsMap = schemaComponentsMap;

0 commit comments

Comments
 (0)