Unverified Commit 1cc8f991 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1704 from hypothesis/export-at-declaration

Move `export` keyword to declaration site
parents 6c209ff3 96f4467c
......@@ -16,13 +16,13 @@ const HIGHLIGHT_BTN_SELECTOR = '.js-highlight-btn';
* Show the adder above the selection with an arrow pointing down at the
* selected text.
*/
const ARROW_POINTING_DOWN = 1;
export const ARROW_POINTING_DOWN = 1;
/**
* Show the adder above the selection with an arrow pointing up at the
* selected text.
*/
const ARROW_POINTING_UP = 2;
export const ARROW_POINTING_UP = 2;
function toPx(pixels) {
return pixels.toString() + 'px';
......@@ -287,5 +287,3 @@ export class Adder {
}, 1);
}
}
export { ARROW_POINTING_DOWN, ARROW_POINTING_UP };
......@@ -21,7 +21,7 @@
* Types of Markdown link that can be inserted with
* convertSelectionToLink()
*/
const LinkType = {
export const LinkType = {
ANCHOR_LINK: 0,
IMAGE_LINK: 1,
};
......@@ -264,5 +264,3 @@ export function toggleBlockStyle(state, prefix) {
});
}
}
export { LinkType };
......@@ -32,7 +32,7 @@ const fallbackInjector = {
* Consumers will either use this directly via `useContext` or use the
* `withServices` wrapper.
*/
const ServiceContext = createContext(fallbackInjector);
export const ServiceContext = createContext(fallbackInjector);
/**
* Wrap a React component to inject any services it depends upon as props.
......@@ -112,5 +112,3 @@ export function useService(service) {
const injector = useContext(ServiceContext);
return injector.get(service);
}
export { ServiceContext };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment