declare module '*.sass' { const content: {[className: string]: string}; export = content; } declare module '*.scss' { const content: {[className: string]: string}; export = content; } declare module 'react-lowlight'; declare module 'highlight.js/lib/languages/*'; declare module 'react-truncate-markup/lib'; declare module 'mock-require'; /** * Helper for typing `target`, `target.value`, etc. in an `Event`. * * --- * For example, you can destructure a typed `value` in the params of an input change handler: * * `const handleChange = ({ target: { value } }: HTMLElementEvent) => ...` */ declare type HTMLElementEvent = Event & { target: T; };