-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The following declaration file is missing an import so that it resolves the URL type in the following line, when using your package to run an application in Node.js:
node-java-props/src/node-java-props.ts
Line 34 in 692012a
| export function parseFile(path: string | Buffer | URL | number, encoding?: string): Promise<Properties> { |
I get the following error when trying to compile my application using yarn:
error TS2304: Cannot find name 'URL'
Entering import { URL } from 'url' in node-java-props.d.ts solved the issue for me.
Metadata
Metadata
Assignees
Labels
No labels