-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Using NodeJS 19, I get the following error:
manager/v2/fileSystem/FileSystem.ts:2032:57 - error TS2769: No overload matches this call.
Overload 1 of 4, '(ctx: RequestContext, rootPath: string | Path, subTree: SubTree, callback: SimpleCallback): void', gave the following error.
Argument of type 'String | Buffer | ResourceType' is not assignable to parameter of type 'SubTree'.
Type 'String' is not assignable to type 'SubTree'.
Index signature is missing in type 'String'.
Overload 2 of 4, '(ctx: RequestContext, rootPath: string | Path, resourceType: string | Buffer | ResourceType, callback: SimpleCallback): void', gave the following error.
Argument of type 'String | Buffer | ResourceType' is not assignable to parameter of type 'string | Buffer | ResourceType'.
Type 'String' is not assignable to type 'string | Buffer | ResourceType'.
Type 'String' is not assignable to type 'string'.
'string' is a primitive, but 'String' is a wrapper object. Prefer using 'string' when possible.
2032 this.addSubTree(ctx, childPath, value, cb)
~~~~~
Metadata
Metadata
Assignees
Labels
No labels