Skip to content

Commit 72e69fc

Browse files
committed
fix: updated typing for schema
1 parent 93c041b commit 72e69fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resource/parsed-resource-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type ParsedParameterSetting =
3535
export class ParsedResourceSettings<T extends StringIndexedObject> implements ResourceSettings<T> {
3636
private cache = new Map<string, unknown>();
3737
id!: string;
38-
schema?: JSONSchemaType<T | any>;
38+
schema?: Partial<JSONSchemaType<T | any>>;
3939
allowMultiple?: {
4040
matcher?: (desired: Partial<T>, current: Partial<T>[]) => Partial<T>;
4141
requiredParameters?: string[]

src/resource/resource-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface ResourceSettings<T extends StringIndexedObject> {
2424
/**
2525
* Schema to validate user configs with. Must be in the format JSON Schema draft07
2626
*/
27-
schema?: JSONSchemaType<T | any>;
27+
schema?: Partial<JSONSchemaType<T | any>>;
2828

2929
/**
3030
* Allow multiple of the same resource to unique. Set truthy if

0 commit comments

Comments
 (0)