mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[hapi-pino] Support scoped Hapi package, update for 6.x (#36425)
This commit is contained in:
parent
c86d5c4ed9
commit
08ba1b8dfa
@ -1,4 +1,4 @@
|
||||
import { Server } from 'hapi';
|
||||
import { Server } from '@hapi/hapi';
|
||||
import * as pino from 'pino';
|
||||
import * as HapiPino from 'hapi-pino';
|
||||
|
||||
|
||||
22
types/hapi-pino/index.d.ts
vendored
22
types/hapi-pino/index.d.ts
vendored
@ -1,24 +1,24 @@
|
||||
// Type definitions for hapi-pino 5.2
|
||||
// Type definitions for hapi-pino 6.0
|
||||
// Project: https://github.com/pinojs/hapi-pino#readme
|
||||
// Definitions by: Rodrigo Saboya <https://github.com/saboya>
|
||||
// Todd Bealmear <https://github.com/todd>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types='node' />
|
||||
|
||||
import {
|
||||
Plugin,
|
||||
} from 'hapi';
|
||||
import * as pino from 'pino';
|
||||
|
||||
declare module 'hapi' {
|
||||
interface Server {
|
||||
logger: () => pino.Logger;
|
||||
}
|
||||
import { Plugin } from '@hapi/hapi';
|
||||
|
||||
interface Request {
|
||||
logger: pino.Logger;
|
||||
}
|
||||
declare module '@hapi/hapi' {
|
||||
interface Server {
|
||||
logger: () => pino.Logger;
|
||||
}
|
||||
|
||||
interface Request {
|
||||
logger: pino.Logger;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace HapiPino {
|
||||
|
||||
@ -14,7 +14,33 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@hapi/hapi": [
|
||||
"hapi__hapi"
|
||||
],
|
||||
"@hapi/boom": [
|
||||
"hapi__boom"
|
||||
],
|
||||
"@hapi/shot": [
|
||||
"hapi__shot"
|
||||
],
|
||||
"@hapi/mimos": [
|
||||
"hapi__mimos"
|
||||
],
|
||||
"@hapi/iron": [
|
||||
"hapi__iron"
|
||||
],
|
||||
"@hapi/joi": [
|
||||
"hapi__joi"
|
||||
],
|
||||
"@hapi/podium": [
|
||||
"hapi__podium"
|
||||
],
|
||||
"@hapi/catbox": [
|
||||
"hapi__catbox"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user