File: input.ts

package info (click to toggle)
django-pipeline 4.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 912 kB
  • sloc: python: 3,170; makefile: 119; javascript: 59
file content (13 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
type FullName = string;

interface User {
    firstName: string;
    lastName: string;
}


function getName(u: User): FullName {
    return `${u.firstName} ${u.lastName}`;
}

let userName: FullName = getName({firstName: "Django", lastName: "Pipeline"});