-
-
Save jsoneaday/cb61461f0fe03235bdfe3309dcdd1fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface MyData { | |
name: string; | |
age: number; | |
} | |
const sourceData = { | |
name: "jon", | |
age: 25, | |
country: "United States", | |
sex: "male", | |
occupation: "Programmer" | |
} | |
const receivedData: MyData = sourceData; | |
console.log(receivedData); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment