Mood
Supported greeting moods.
Values
FormalFriendlyTYPESCRIPT · TYPEDOC
Real TypeDoc output from the checked-in typescript fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.
Supported greeting moods.
FormalFriendlyBuild personalized greetings without network access.
Create one greeter per locale. Prefix changes apply to future greetings.
prefixstringGreeting prefix.
Default: 'Hello'
constructor→ Greetergreet→ stringGreet a reader.
name: stringgreetChecked→ stringValidate a name before greeting it.
name: stringgreetMany→ stringGreet several readers while preserving input order.
names: string[]separator: stringoptionalhello→ stringUse greet instead.
name: stringGreeterGreet a reader.
namestringReader name.
stringA friendly greeting.
Validate a name before greeting it.
Errorwhen the name is empty.
namestringstringGreet several readers while preserving input order.
namesstring[]Reader names.
separatorstringoptionalSeparator between greetings.
stringJoined greetings.
Use greet instead.
Deprecated. Use greet(name) for consistent formatting.
namestringstringGreeting prefix.
Options accepted by greeting integrations.
moodMoodDesired greeting tone.
prefixstringoptionalOptional salutation override.
Desired greeting tone.
Optional salutation override.