Closed adamjmcgrath closed 2 years ago
Use import = require() syntax to import a CommonJS style export = type from @types/express
import = require()
export =
fixes #309 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express/index.d.ts https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
I'd like to remove the esModuleInterop flag from https://github.com/auth0/node-jwks-rsa/blob/master/tsconfig.json#L16 so our CI tests would verify this, but I can't because out express-jwt dependencies require this. So tested manually with basic TS config.
esModuleInterop
express-jwt
master
lets get this merged, latest release is breaking all of our nodejs auth0 apps
Description
Use
import = require()
syntax to import a CommonJS styleexport =
type from @types/expressReferences
fixes #309 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express/index.d.ts https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
Testing
I'd like to remove the
esModuleInterop
flag from https://github.com/auth0/node-jwks-rsa/blob/master/tsconfig.json#L16 so our CI tests would verify this, but I can't because outexpress-jwt
dependencies require this. So tested manually with basic TS config.Checklist
master