Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 593 Bytes

types.custommessage.md

File metadata and controls

19 lines (11 loc) · 593 Bytes

Home > @skunkteam/types > CustomMessage

CustomMessage type

The type for optional custom messages

Signature:

type CustomMessage<T, E = void> = undefined | string | ((got: string, input: T, explanation: E) => string);

Remarks

  • When of type string, the custom message will be: ${customMessage}, got: ${got}

  • When of type function, it will receive the got part to use inside the message.