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