26 lines
528 B
TypeScript
26 lines
528 B
TypeScript
export type Person = {
|
|
name: string;
|
|
age: number;
|
|
}
|
|
|
|
export const person:Person = {
|
|
name: 'Shafi',
|
|
age: 26
|
|
}
|
|
|
|
export function greetPerson(person: Person) {
|
|
return `hello ${person.name}`
|
|
}
|
|
|
|
// tRPC contract types (router lives in apps/backend)
|
|
export type {
|
|
AppRouter,
|
|
} from '../../../apps/backend/src/trpc/router'
|
|
|
|
// Shared schemas
|
|
export * from './schemas/product'
|
|
export * from './schemas/stock'
|
|
export * from './schemas/dashboard'
|
|
|
|
// Global constants
|
|
export { globalConsts } from './global-consts'
|