Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

typescript dynamic type

// you can pass any type data for your use
function Person<T, U>(data): T | U { 
 return data
}

console.log(Person<string, number>("hello wordl"))
Comment

PREVIOUS NEXT
Code Example
Typescript :: whats a company letterhead 
Typescript :: yup typescript 
Typescript :: whats the internet 
Typescript :: Line 23:12: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images 
Typescript :: .setRowHeights google script 
Typescript :: body massage centers in kochi 
Typescript :: How to return a new string with its first and last characters swapped 
Typescript :: meta tag utf-8 means kya hota hai 
Typescript :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 
Cpp :: ue4 log float 
Cpp :: how to use python sleep function on c++ 
Cpp :: c++ inline 
Cpp :: flutter datetime format 
Cpp :: c++ directory listing 
Cpp :: c++ print colorful 
Cpp :: c++ chrono get milliseconds 
Cpp :: string to size_t cpp 
Cpp :: priority queue ordered by second element 
Cpp :: swap using Function template in c++ 
Cpp :: controlling in windows 
Cpp :: how to type hello world in c++ 
Cpp :: C++ sqlite open file in other directory 
Cpp :: for loop reverse C++ 
Cpp :: std::tuple apply multiplier 
Cpp :: min heap in c++ 
Cpp :: c ++ program to search hashmap 
Cpp :: c++ main environment variables 
Cpp :: using find in vector c++ 
Cpp :: c++ vector iterator 
Cpp :: time delay in c++ 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =