We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIve error saying File is not defined :
var file2 = new File(["asdasdsa"], 'metadata.json'); console.log(file2.name);
The text was updated successfully, but these errors were encountered:
What's your compiler flags / full tsc command to reproduce the error?
Sorry, something went wrong.
export const delayMillis = (delayMs: number): Promise<void> => new Promise(resolve => setTimeout(resolve, delayMs)); export const greet = (name: string): string => `Hello ${name}` export const foo = async (): Promise<boolean> => { console.log(greet('World')) await delayMillis(1000) console.log('done') var file:File = new File(["asdasdsa"], 'metadata.json'); console.log(file.name); return true }
I added my File Object creation code sinp into your main.ts and run npm run cli command
npm run cli
No branches or pull requests
should be able to create FIle Object which is available in Typescript
Actual Behavior
GIve error saying File is not defined :
Steps to Reproduce the Problem code sample
Specifications
The text was updated successfully, but these errors were encountered: