socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Change 'import express = require("express");' to correct TS syntax

Open mivpt opened this issue 1 year ago • 1 comments

The kind of change this PR does introduce

  • [x] a bug fix
  • [ ] a new feature
  • [ ] an update to the documentation
  • [ ] a code change that improves performance
  • [ ] other

Current behavior

import express = require("express")

New behavior

import express, { type Request } from "express";

Other information (e.g. related issues)

mivpt avatar Dec 26 '23 00:12 mivpt

I don't think this is right. Don't you need to set allowSyntheticDefaultImports to true in that case?

darrachequesne avatar Jan 02 '24 15:01 darrachequesne

Closed due to inactivity, please reopen if needed.

darrachequesne avatar Mar 14 '24 16:03 darrachequesne