File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -879,6 +879,7 @@ declare namespace pino {
879879 unixTime : TimeFn ;
880880 nullTime : TimeFn ;
881881 isoTime : TimeFn ;
882+ isoTimeNano : TimeFn ;
882883 } ;
883884 }
884885}
Original file line number Diff line number Diff line change 11import { expectType } from "tsd" ;
22
3- import pino from '../../pino' ;
4- import P , { pino as pinoNamed } from "../../pino" ;
53import * as pinoStar from "../../pino" ;
4+ import { default as P , default as pino , pino as pinoNamed } from '../../pino' ;
65import pinoCjsImport = require ( "../../pino" ) ;
76const pinoCjs = require ( "../../pino" ) ;
87const { P : pinoCjsNamed } = require ( 'pino' )
@@ -19,6 +18,8 @@ expectType<pino.Logger>(pinoStar.pino());
1918expectType < pino . Logger > ( pinoCjsImport . pino ( ) ) ;
2019expectType < any > ( pinoCjsNamed ( ) ) ;
2120expectType < any > ( pinoCjs ( ) ) ;
21+ expectType < P . TimeFn > ( pinoNamed . stdTimeFunctions . isoTimeNano )
22+ expectType < string > ( pinoNamed . stdTimeFunctions . isoTimeNano ( ) )
2223
2324const levelChangeEventListener : P . LevelChangeEventListener = (
2425 lvl : P . LevelWithSilent | string ,
You can’t perform that action at this time.
0 commit comments