Skip to content

Instantly share code, notes, and snippets.

View JWLangford's full-sized avatar

Jesse Langford JWLangford

View GitHub Profile
interface ObjectBase {
id: string
created?: string
update?: string
}
interface Account extends Person, Dates, Id, Email, Billing, Permissions, Metrics {
memberStatus: string
}
interface PersonDetails {
name: string
age: number
}
interface ObjectDetails {
id: string
created: string
updated: string
}
interface PersonDetails {
name: string
age: number
}
interface Member extends PersonDetails {
memberId: string
}
interface TicketHolder extends PersonDetails {
interface Id {
id: string
}
interface IDates {
created: string
updated: string
}
interface IEmail {
import { messageFunc, userFunc, newUserFunc } from "./components";
export const runServer = () => {
console.log(messageFunc("Hello"));
console.log(userFunc("Jesse"));
console.log(newUserFunc("Jesse Again"));
};
export const userFunc = (user: string) => {
return `Here is your user: ${user}`;
};
export const newUserFunc = (user: string) => {
return `Here is your new user: ${user}`;
}
import { messageFunc, userFunc } from "./components";
export const runServer = () => {
console.log(messageFunc("Hello"));
console.log(userFunc("Jesse"));
};
export * from "./message";
export * from "./user";
import { messageFunc } from "./components/message";
import { userFunc } from "./components/user";
export const runServer = () => {
console.log(messageFunc("Hello"));
console.log(userFunc("Jesse"));
};