Gistlib Logo

gistlib

create a in typescript

index.ts
interface Person {
    name: string;
    age: number;
}

let person: Person = {
    name: "John",
    age: 30
};
113 chars
10 lines

similar typescript code snippets

get the date for the first day of the current month in typescript
get the date 5 years ago in typescript
find the largest node in a linked list in typescript
add an element to the beginning of an array in typescript
state in typescript
add a node to the end of a linked list in typescript
send a json message to a udp server in typescript
call a public method on an instance of a class in typescript
get the date 5 weeks from now in typescript
a basic react component rendering a list items from an array in typescript

related categories

typescript
programming

gistlibby LogSnag