import { describe, it } from 'node:test'; import type { Product, TypedCustomNumberAttribute, TypedCustomMeasurementAttribute, TypedCustomJsonAttribute } from './products.ts'; describe('Products', () => { it('should have custom attribute types', () => { const p = {} as unknown as Product; if (p.typedCustom) { if (p.typedCustom.lengths) p.typedCustom.lengths satisfies TypedCustomMeasurementAttribute; if (p.typedCustom.numbers) p.typedCustom.numbers satisfies TypedCustomNumberAttribute; if (p.typedCustom.json) p.typedCustom.json satisfies TypedCustomJsonAttribute; } }); });