Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
37 lines
999 B
Plaintext
37 lines
999 B
Plaintext
import { expectType, expectAssignable } from 'tsd'
|
|
import type { SonicBoom } from "sonic-boom";
|
|
|
|
import {
|
|
destination,
|
|
LevelMapping,
|
|
levels,
|
|
Logger,
|
|
multistream,
|
|
MultiStreamRes,
|
|
SerializedError,
|
|
stdSerializers,
|
|
stdTimeFunctions,
|
|
symbols,
|
|
transport,
|
|
version,
|
|
} from "../../pino";
|
|
import pino from "../../pino";
|
|
|
|
expectType<SonicBoom>(destination(""));
|
|
expectType<LevelMapping>(levels);
|
|
expectType<MultiStreamRes>(multistream(process.stdout));
|
|
expectType<SerializedError>(stdSerializers.err({} as any));
|
|
expectType<string>(stdTimeFunctions.isoTime());
|
|
expectType<string>(stdTimeFunctions.isoTimeNano());
|
|
expectType<string>(version);
|
|
|
|
// Can't test against `unique symbol`, see https://github.com/SamVerschueren/tsd/issues/49
|
|
expectAssignable<Symbol>(symbols.endSym);
|
|
|
|
// TODO: currently returns (aliased) `any`, waiting for strong typed `thread-stream`
|
|
transport({
|
|
target: '#pino/pretty',
|
|
options: { some: 'options for', the: 'transport' }
|
|
});
|
|
|