-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
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
Type 'Opts' does not satisfy the constraint 'string'.ts(2344) #313
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
A temporary solution: Then go to your package-lock.json, and find for
And run |
naseemkullah
added a commit
to naseemkullah/pino-http
that referenced
this issue
Dec 15, 2023
the type variable of the logger should be the custom levels type since a recent change in pino types (pinojs#304) fixes pinojs#313
naseemkullah
added a commit
to naseemkullah/pino-http
that referenced
this issue
Dec 15, 2023
the type variable of the logger should be the custom levels type since a recent change in pino types (pinojs/pino#1858) fixes pinojs#313
mcollina
pushed a commit
that referenced
this issue
Dec 15, 2023
the type variable of the logger should be the custom levels type since a recent change in pino types (pinojs/pino#1858) fixes #313
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Throwing error for opts type mismatch
export interface HttpLogger<IM = IncomingMessage, SR = ServerResponse, Opts = Options<IM, SR>> {
(req: IM, res: SR, next?: () => void): void;
logger: pino.Logger;
}
Type 'Opts' does not satisfy the constraint 'string'.ts(2344)
index.d.ts(19, 72): This type parameter might need an
extends string
constraint.The text was updated successfully, but these errors were encountered: