Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript interface

interface Person {
  name: string;
  age: number;
}
 
function greet(person: Person) {
  return "Hello " + person.name;
}
Try
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript #interface
ADD COMMENT
Topic
Name
3+4 =