RSSAmplifier

Sam Dawson's Blog · Apr 16, 2020

Union type from an array of strings

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Sometimes typescript can feel like duplication, describing code that is already static (constant). Heres one trick to mitigate that by generating a string literal union type from an array. The…

Read on samdawson.devunion-type-from-array

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.