tuil
ReferencePackages@mwillbanks/tuil-loggingAPI

normalizeSeverity

function exported by @mwillbanks/tuil-logging.

View rawEdit

function

Public function exported by @mwillbanks/tuil-logging.

export function normalizeSeverity(value: unknown): {
  readonly number?: number;
  readonly text?: string;
};

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
valueunknownYesSupplies the value value as unknown.

Returns

{ readonly number?: number; readonly text?: string; } — Returns a value that satisfies { readonly number?: number; readonly text?: string; }.

Related types: —

Throws

No thrown errors are documented for this declaration.

No package-local related types.

Source

View the secondary source reference

Package

@mwillbanks/tuil-logging

On this page