Skip to content

fix(TypeScript): express() is an express Application in strinct - #376

Open
nigrosimone wants to merge 1 commit into
dimdenGD:mainfrom
nigrosimone:fix-types-express-application
Open

nigrosimone wants to merge 1 commit into
dimdenGD:mainfrom
nigrosimone:fix-types-express-application

Conversation

@nigrosimone

Copy link
Copy Markdown
Contributor

The type returned by express() is not assignable to an express Application in strict, so code typed against Express does not compile with it, for example:

import express, { Application } from "ultimate-express";
const app: Application = express()

raise error:

error TS2322: Type 'UltimateExpress' is not assignable to type 'Application'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant