Without these exports, this errors when the declaration compiler option is enabled:
import * as Sum from 'shared/facades/Sum';
export type Mode = Sum.Member<'SubmitToBrief'> | Sum.Member<'Publish'>;
export const {
mk,
// Exported variable 'match' has or is using name '_' from external module "/Users/oliverash/Development/unsplash/unsplash-web/node_modules/@unsplash/sum-types/dist/types/index" but cannot be named.ts(4023)
match,
// Exported variable 'matchW' has or is using name '_' from external module "/Users/oliverash/Development/unsplash/unsplash-web/node_modules/@unsplash/sum-types/dist/types/index" but cannot be named.ts(4023)
matchW,
} = Sum.create<Mode>();
Without these exports, this errors when the
declaration
compiler option is enabled: