Skip to content

Instantly share code, notes, and snippets.

@bicknest
Created October 16, 2019 01:01
Show Gist options
  • Save bicknest/96fbe1c807774929e4bcbe5706d64881 to your computer and use it in GitHub Desktop.
Save bicknest/96fbe1c807774929e4bcbe5706d64881 to your computer and use it in GitHub Desktop.
Opaque Typing #2
import {type MediumDate} from './utils';
const format = (d: DayJSable): MediumDate => {
dayjs(d).format('DD-MM-YYYY');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment