Krystian Derdziński
krystian-der.bsky.social
Krystian Derdziński
@krystian-der.bsky.social
Reposted by Krystian Derdziński
Yet another nice example of template literal types, spotted in the AI SDK codebase.

This forces the 'size' property in generateImage to match `${number}x${number}`. Beautiful.
January 16, 2025 at 11:32 AM