23 lines
462 B
TypeScript
23 lines
462 B
TypeScript
#!/usr/bin/env tsx
|
|
|
|
console.log('✓ TypeScript execution works!');
|
|
|
|
// Test TypeScript features
|
|
interface TestData {
|
|
message: string;
|
|
timestamp: Date;
|
|
success: boolean;
|
|
}
|
|
|
|
const data: TestData = {
|
|
message: 'TSPM can run .ts files directly with tsx!',
|
|
timestamp: new Date(),
|
|
success: true
|
|
};
|
|
|
|
console.log('Test data:', data);
|
|
console.log('✓ TypeScript types and interfaces work');
|
|
console.log('✓ Test complete');
|
|
|
|
// Exit cleanly
|
|
process.exit(0); |