POWR/tests/type-test.ts

19 lines
475 B
TypeScript
Raw Normal View History

2025-02-09 20:38:38 -05:00
// tests/type-test.ts (just to verify types)
import { BaseExercise } from '@/types/exercise';
import { StorageSource } from '@/types/shared';
// This should compile if our types are correct
const testExercise: BaseExercise = {
// SyncableContent properties
id: 'test-id',
created_at: Date.now(),
availability: {
source: ['local' as StorageSource]
},
// BaseExercise properties
title: 'Test Exercise',
type: 'strength',
category: 'Push',
tags: [],
};