Skip to content

Bug-Hunter-X/TypeScript--Passing-Array-to-String-Function-vyy7r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This example demonstrates a common TypeScript error: passing an array to a function that expects a string. The greeter function is defined to accept a string, but an array is passed as an argument. The solution shows how to correctly handle this situation, either by iterating through the array or by modifying the function signature to handle arrays.

About

TypeScript error when passing an array to a function expecting a string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published